Frame 1
Stage.showMenu = false;
_root.updateshared = function () {
trace("UPDATE FUNCTION CALLED");
_root.locSO.data.puzzles = _root.completed;
trace("COMPLETED: " + _root.completed);
trace("SHARED: " + _root.locSO.data.puzzles);
_root.locSO.flush();
};
_root.locSO = SharedObject.getLocal("userdata");
if (!_root.locSO.data.timer) {
trace("no data here");
_root.seconds = 0;
_root.completed = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.locSO.data.timer = _root.seconds;
_root.locSO.data.puzzles = _root.completed;
_root.locSO.flush();
} else {
trace("DATA WAS HERE");
trace("SO Timer: " + _root.locSO.data.timer);
_root.seconds = _root.locSO.data.timer;
_root.completed = _root.locSO.data.puzzles;
}
stop();
_root.playintro = true;
Frame 2
showtime = function () {
trace("SHOWTIME CALLED: SECONDS: " + _root.seconds);
_root.timehour = Math.floor(_root.seconds / 3600);
_root.timeminutes = Math.floor((_root.seconds - (3600 * _root.timehour)) / 60);
_root.timeseconds = Math.floor((_root.seconds - (3600 * _root.timehour)) - (60 * _root.timeminutes));
_root.timer.text = "";
if (_root.timehour < 10) {
_root.timer.text = "0" + _root.timehour;
} else {
_root.timer.text = _root.timehour;
}
_root.timer.text = _root.timer.text + ":";
if (_root.timeminutes < 10) {
_root.timer.text = _root.timer.text + String("0" + _root.timeminutes);
} else {
_root.timer.text = _root.timer.text + String(_root.timeminutes);
}
_root.timer.text = _root.timer.text + ":";
if (_root.timeseconds < 10) {
_root.timer.text = _root.timer.text + String("0" + _root.timeseconds);
} else {
_root.timer.text = _root.timer.text + String(_root.timeseconds);
}
counter = 0;
x = 0;
while (x < 11) {
if (_root.completed[x] == 1) {
counter++;
}
x++;
}
_root.puzcom.text = String(counter + "/10");
};
colorpieces = function () {
x = 1;
while (x <= 10) {
if (_root.completed[x - 1] == 1) {
trace(eval ("_root.thepuz" + x)._currentframe);
eval ("_root.thepuz" + x).gotoAndStop(2);
}
x++;
}
};
Instance of Symbol 75 MovieClip "thepuz1" in Frame 2
onClipEvent (load) {
stop();
_visible = false;
}
on (press) {
stopAllSounds();
_root.timebegin = getTimer();
_root.gotoAndPlay(10);
}
Instance of Symbol 78 MovieClip "thepuz2" in Frame 2
on (press) {
stopAllSounds();
_root.timebegin = getTimer();
_root.gotoAndPlay(18);
}
onClipEvent (load) {
_visible = false;
stop();
}
Instance of Symbol 81 MovieClip "thepuz3" in Frame 2
on (press) {
stopAllSounds();
_root.timebegin = getTimer();
_root.gotoAndPlay(23);
}
onClipEvent (load) {
_visible = false;
stop();
}
Instance of Symbol 84 MovieClip "thepuz4" in Frame 2
on (press) {
stopAllSounds();
_root.timebegin = getTimer();
_root.gotoAndPlay(28);
}
onClipEvent (load) {
_visible = false;
stop();
}
Instance of Symbol 87 MovieClip "thepuz5" in Frame 2
on (press) {
stopAllSounds();
_root.timebegin = getTimer();
_root.gotoAndPlay(34);
}
onClipEvent (load) {
_visible = false;
stop();
}
Instance of Symbol 90 MovieClip "thepuz6" in Frame 2
on (press) {
stopAllSounds();
_root.timebegin = getTimer();
_root.gotoAndStop(37);
}
onClipEvent (load) {
_visible = false;
stop();
}
Instance of Symbol 93 MovieClip "thepuz7" in Frame 2
on (press) {
stopAllSounds();
_root.timebegin = getTimer();
_root.gotoAndStop(40);
}
onClipEvent (load) {
_visible = false;
stop();
}
Instance of Symbol 96 MovieClip "thepuz8" in Frame 2
on (press) {
stopAllSounds();
_root.timebegin = getTimer();
_root.gotoAndStop(45);
}
onClipEvent (load) {
_visible = false;
stop();
}
Instance of Symbol 99 MovieClip "thepuz9" in Frame 2
on (press) {
stopAllSounds();
_root.timebegin = getTimer();
_root.gotoAndStop(54);
}
onClipEvent (load) {
_visible = false;
stop();
}
Instance of Symbol 102 MovieClip "thepuz10" in Frame 2
on (press) {
stopAllSounds();
_root.timebegin = getTimer();
_root.gotoAndStop(60);
}
onClipEvent (load) {
_visible = false;
stop();
}
Instance of Symbol 105 MovieClip in Frame 2
on (release) {
getURL ("mailto:clickdragtype@mail2developer.com");
}
Instance of Symbol 111 MovieClip in Frame 2
onClipEvent (load) {
_root.intro = new Sound();
_root.intro.attachSound("introbeat");
_root.intro.stop();
if (_root.playintro) {
_root.intro.start(0, 30000);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_currentframe == 1) {
stopAllSounds();
_root.playintro = false;
gotoAndStop (2);
} else {
_root.playintro = true;
_root.intro.start(0, 30000);
gotoAndStop (1);
}
}
Instance of Symbol 114 MovieClip in Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 116 MovieClip in Frame 2
onClipEvent (load) {
_visible = false;
_root.colorpieces();
_root.showtime();
}
Instance of Symbol 120 MovieClip in Frame 2
onClipEvent (load) {
_visible = false;
}
Frame 10
function moveto(movex, movey) {
if ((((_root.keydrag._x >= (movex - 1)) && (_root.keydrag._x <= (movex + 1))) && (_root.keydrag._y >= (movey - 1))) && (_root.keydrag._y <= (movey + 1))) {
if (_root.keydrag.moveme == 2) {
_root.gotoAndPlay(10);
}
_root.keydrag.moveme = 0;
}
_root.yChange = movey - _root.keydrag._y;
_root.yMove = _root.yChange / 10;
_root.xChange = movex - _root.keydrag._x;
_root.xMove = _root.xChange / 10;
_root.keydrag._x = _root.keydrag._x + _root.xMove;
_root.keydrag._y = _root.keydrag._y + _root.yMove;
}
function showlines() {
_root.vert._visible = true;
_root.horz._visible = true;
}
function hidelines() {
_root.vert._visible = false;
_root.horz._visible = false;
}
function moveoutline(posx, posy) {
x = 1;
while (x <= 6) {
x++;
}
}
Instance of Symbol 127 MovieClip in Frame 10
on (press) {
if (_root.keydrag._x < 143) {
_root.keydrag.moveme = 2;
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
onClipEvent (load) {
_root.posneg = -1;
}
Instance of Symbol 138 MovieClip in Frame 10
onClipEvent (enterFrame) {
this._x = _root.square._x;
this._y = _root.square._y;
}
Instance of Symbol 151 MovieClip "horz" in Frame 10
onClipEvent (enterFrame) {
if (_root.movevert == true) {
if (((this._y + _root.way2) >= 25) && ((this._y + _root.way2) <= 92.5)) {
this._y = this._y + _root.way2;
}
}
}
onClipEvent (load) {
_root.movevert = false;
}
Instance of Symbol 151 MovieClip "vert" in Frame 10
onClipEvent (enterFrame) {
if (_root.moveside == true) {
if (((this._x + _root.way) >= 106) && ((this._x + _root.way) <= 514)) {
this._x = this._x + _root.way;
}
}
}
onClipEvent (load) {
_root.moveside = false;
}
Instance of Symbol 153 MovieClip "square" in Frame 10
onClipEvent (enterFrame) {
if (moveme == true) {
if ((((this._x >= (_root.vert._x - 1)) && (this._x <= (_root.vert._x + 1))) && (this._y >= (_root.horz._y - 1))) && (this._y <= (_root.horz._y + 1))) {
moveme = false;
}
_root.yChange = _root.horz._y - this._y;
_root.yMove = _root.yChange / 20;
_root.xChange = _root.vert._x - this._x;
_root.xMove = _root.xChange / 20;
this._x = this._x + _root.xMove;
this._y = this._y + _root.yMove;
}
}
onClipEvent (load) {
_root.hidelines();
moveme = false;
}
Instance of Symbol 155 MovieClip "out1" in Frame 10
onClipEvent (load) {
_root.posneg = _root.posneg * -1;
this._y = this._y + (random(31) * _root.posneg);
_root.num_out1._y = this._y;
}
Instance of Symbol 155 MovieClip "out2" in Frame 10
onClipEvent (load) {
_root.posneg = _root.posneg * -1;
this._y = this._y + (random(31) * _root.posneg);
_root.num_out2._y = this._y;
}
Instance of Symbol 155 MovieClip "out3" in Frame 10
onClipEvent (load) {
_root.posneg = _root.posneg * -1;
this._y = this._y + (random(31) * _root.posneg);
_root.num_out3._y = this._y;
}
Instance of Symbol 155 MovieClip "out4" in Frame 10
onClipEvent (load) {
_root.posneg = _root.posneg * -1;
this._y = this._y + (random(31) * _root.posneg);
_root.num_out4._y = this._y;
}
Instance of Symbol 155 MovieClip "out5" in Frame 10
onClipEvent (load) {
_root.posneg = _root.posneg * -1;
this._y = this._y + (random(31) * _root.posneg);
_root.num_out5._y = this._y;
}
Instance of Symbol 155 MovieClip "out6" in Frame 10
onClipEvent (load) {
_root.posneg = _root.posneg * -1;
this._y = this._y + (random(31) * _root.posneg);
_root.num_out6._y = this._y;
}
Instance of Symbol 171 MovieClip "door2" in Frame 10
onClipEvent (load) {
_root.changeout = false;
}
Instance of Symbol 185 MovieClip in Frame 10
on (release) {
}
onClipEvent (load) {
_root.staydown = false;
_root.thelock.lockpin1._yscale = _root.p1scale * 20;
_root.thelock.lockpin2._yscale = _root.p2scale * 20;
_root.thelock.lockpin3._yscale = _root.p3scale * 20;
_root.thelock.lockpin4._yscale = _root.p4scale * 20;
_root.thelock.lockpin5._yscale = _root.p5scale * 20;
_root.thelock.power1._y = _root.thelock.power1._y + (8 * (5 - _root.p1scale));
_root.thelock.power2._y = _root.thelock.power2._y + (8 * (5 - _root.p2scale));
_root.thelock.power3._y = _root.thelock.power3._y + (8 * (5 - _root.p3scale));
_root.thelock.power4._y = _root.thelock.power4._y + (8 * (5 - _root.p4scale));
_root.thelock.power5._y = _root.thelock.power5._y + (8 * (5 - _root.p5scale));
}
Instance of Symbol 188 MovieClip "actions" in Frame 10
onClipEvent (load) {
_root.p1scale = random(6);
_root.p2scale = random(6);
_root.p3scale = random(6);
_root.p4scale = random(6);
_root.p5scale = random(6);
}
Instance of Symbol 190 MovieClip in Frame 10
on (release) {
stopAllSounds();
_root.gotoAndStop(2);
}
Instance of Symbol 192 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.seconds = _root.seconds + ((getTimer() - _root.timebegin) / 1000);
_root.timebegin = getTimer();
_root.locSO.data.timer = _root.seconds;
}
Instance of Symbol 204 MovieClip "thekey" in Frame 11
onClipEvent (enterFrame) {
this._x = _root.keydrag._x + 62.5;
this._y = _root.keydrag._y;
}
onClipEvent (load) {
_root.p1 = 5;
_root.p2 = 5;
_root.p3 = 5;
_root.p4 = 5;
_root.p5 = 5;
}
Instance of Symbol 206 MovieClip "keydrag" in Frame 11
onClipEvent (load) {
inside = false;
moveme = 1;
}
on (press) {
if ((inside == false) && (moveme == 0)) {
this.startDrag(false, 44, 344, 247, 344);
}
}
on (release, releaseOutside) {
this.stopDrag();
if (this._x >= 246) {
inside = true;
_root.thelock.play();
}
}
onClipEvent (enterFrame) {
switch (moveme) {
case 1 :
_root.moveto(43, 344);
break;
case 2 :
_root.moveto(43, 500);
_root.thekey._rotation = _root.thekey._rotation + 5;
}
}
Instance of Symbol 185 MovieClip "thelock" in Frame 11
on (release) {
}
onClipEvent (load) {
_root.thelock.lockpin1._yscale = _root.p1scale * 20;
_root.thelock.lockpin2._yscale = _root.p2scale * 20;
_root.thelock.lockpin3._yscale = _root.p3scale * 20;
_root.thelock.lockpin4._yscale = _root.p4scale * 20;
_root.thelock.lockpin5._yscale = _root.p5scale * 20;
_root.thelock.power1._y = _root.thelock.power1._y + (8 * (5 - _root.p1scale));
_root.thelock.power2._y = _root.thelock.power2._y + (8 * (5 - _root.p2scale));
_root.thelock.power3._y = _root.thelock.power3._y + (8 * (5 - _root.p3scale));
_root.thelock.power4._y = _root.thelock.power4._y + (8 * (5 - _root.p4scale));
_root.thelock.power5._y = _root.thelock.power5._y + (8 * (5 - _root.p5scale));
}
Frame 12
stop();
Frame 18
_global.down = false;
_root.bluevol = 1;
_root.redvol = 1;
_root.bluevol2 = 50;
_root.redvol2 = 50;
gotoAndPlay(_currentframe + 1);
Instance of Symbol 210 MovieClip "red" in Frame 18
on (press, dragOver) {
_global.down1 = true;
}
on (release, releaseOutside) {
_global.down1 = false;
this.stopDrag();
}
onClipEvent (enterFrame) {
if ((_global.down1 == true) && (_global.locked == true)) {
Xpos = _root._xmouse;
Ypos = _root._ymouse;
gearXpos = this._x;
gearYpos = this._y;
x = Xpos - gearXpos;
y = Ypos - gearYpos;
r = Math.sqrt((x * x) + (y * y));
angleB = y / r;
angle = Math.asin(angleB);
if (Xpos < gearXpos) {
this._rotation = -180 - (angle / 0.0175);
} else if (Xpos > gearXpos) {
this._rotation = angle / 0.0175;
}
_root.redvol2 = Math.abs(this._rotation / 180) * 100;
}
if ((_global.down1 == true) && (_global.locked == false)) {
this.startDrag(false, 81, 150.9, 456.8, 295.55);
_root.redvol = Math.abs((81 - this._x) / 375.8);
dragging = true;
}
}
Instance of Symbol 210 MovieClip "blue" in Frame 18
on (press, dragOver) {
_global.down = true;
}
on (release, releaseOutside) {
_global.down = false;
this.stopDrag();
}
onClipEvent (enterFrame) {
if ((_global.down == true) && (_global.locked == true)) {
Xpos = _root._xmouse;
Ypos = _root._ymouse;
gearXpos = this._x;
gearYpos = this._y;
x = Xpos - gearXpos;
y = Ypos - gearYpos;
r = Math.sqrt((x * x) + (y * y));
angleB = y / r;
angle = Math.asin(angleB);
if (Xpos < gearXpos) {
this._rotation = -180 - (angle / 0.0175);
} else if (Xpos > gearXpos) {
this._rotation = angle / 0.0175;
}
_root.bluevol2 = Math.abs(this._rotation / 180) * 100;
}
if ((_global.down == true) && (_global.locked == false)) {
this.startDrag(false, 81, 150.9, 456.8, 295.55);
_root.bluevol = Math.abs((this._x - 456.8) / 375.8);
dragging = true;
}
}
Instance of Symbol 225 MovieClip "hint1" in Frame 18
onClipEvent (load) {
sound1 = new Sound(this);
sound1.attachSound("8minus6");
sound1.start(0, 50000);
}
Instance of Symbol 226 MovieClip "hint2" in Frame 18
onClipEvent (load) {
sound2 = new Sound(this);
sound2.attachSound("12minus10plus1");
sound2.start(0, 50000);
}
Instance of Symbol 227 MovieClip "hint3" in Frame 18
onClipEvent (load) {
sound3 = new Sound(this);
sound3.attachSound("3times3");
sound3.start(0, 50000);
}
Instance of Symbol 228 MovieClip "hint4" in Frame 18
onClipEvent (load) {
sound4 = new Sound(this);
sound4.attachSound("20minus24plus4");
sound4.start(0, 50000);
}
Instance of Symbol 232 MovieClip in Frame 18
onClipEvent (load) {
_global.locked = true;
}
on (release) {
if (this._currentframe == 1) {
_global.locked = false;
this.gotoAndStop(2);
} else {
_global.locked = true;
this.gotoAndStop(1);
}
}
Instance of Symbol 190 MovieClip in Frame 18
on (release) {
stopAllSounds();
_root.gotoAndStop(2);
}
Instance of Symbol 192 MovieClip in Frame 18
onClipEvent (enterFrame) {
_root.seconds = _root.seconds + ((getTimer() - _root.timebegin) / 1000);
_root.timebegin = getTimer();
_root.locSO.data.timer = _root.seconds;
}
Frame 19
_root.hint1.sound1.setVolume(Math.round(_root.bluevol * (100 - _root.bluevol2)));
_root.hint2.sound2.setVolume(Math.round(_root.redvol * _root.redvol2));
_root.hint3.sound3.setVolume(Math.round(_root.bluevol * _root.bluevol2));
_root.hint4.sound4.setVolume(Math.round(_root.redvol * (100 - _root.redvol2)));
_root.label1._alpha = _root.bluevol * (100 - _root.bluevol2);
_root.label2._alpha = _root.redvol * _root.redvol2;
_root.label3._alpha = _root.bluevol * _root.bluevol2;
_root.label4._alpha = _root.redvol * (100 - _root.redvol2);
_root.blue_bar._xscale = 100 * _root.bluevol;
_root.red_bar._xscale = 100 * _root.redvol;
Frame 20
gotoAndPlay(_currentframe - 1);
Frame 23
_root.con1 = false;
_root.con2 = false;
_root.con3 = false;
_root.con4 = false;
_root.con5 = false;
_root.con6 = false;
_root.con7 = false;
_root.con8 = false;
_root.drag = false;
_root.neverbeendone = true;
_root.playonce = true;
_root.connections = 0;
Instance of Symbol 241 MovieClip in Frame 23
on (rollOver) {
_root.drag = false;
}
Instance of Symbol 246 MovieClip "base" in Frame 23
onClipEvent (load) {
phonecall = new Sound(this);
phonecall.attachSound("phone");
}
Instance of Symbol 248 MovieClip "phone" in Frame 23
onClipEvent (load) {
message = new Sound(this);
message.attachSound("birth");
}
on (press) {
if (_root.connections == 4) {
_root.base.phonecall.stop();
this.startDrag(false, 360, 45, 550, 210);
}
}
on (release, releaseOutside) {
this.stopDrag();
}
Instance of Symbol 188 MovieClip "actions" in Frame 23
onClipEvent (load) {
pendown = false;
setting = false;
thickness = 2;
cR = 0;
cG = 0;
cB = 0;
cA = 100;
var HEXcolor;
myColor = new Color(_root.cBlock);
}
onClipEvent (enterFrame) {
lastX = x;
lastY = y;
X = _root._xmouse;
Y = _root._ymouse;
HEXcolor = ((cR << 16) | (cG << 8)) | cB;
if (pendown && (!setting)) {
_root.drawingPlane.lineTo(X, Y);
}
myColor.setRGB(HEXcolor);
_root.cBlock._alpha = cA;
}
Instance of Symbol 259 MovieClip in Frame 23
on (press) {
if (_root.con1 == false) {
_root.last = "blue";
_root.drag = true;
_root.actions.pendown = true;
_root.con1 = true;
with (_root.drawingPlane) {
lineStyle(1, 0, _root.actions.cA);
moveTo(210, 296);
_root.drawingPlane.lineTo(_root._xmouse, _root._ymouse);
}
}
}
on (rollOver) {
if ((_root.drag == true) && (_root.con1 == false)) {
_root.drawingPlane.lineTo(210, 296);
_root.drag = false;
_root.con1 = true;
if (_root.last == "brown") {
_root.connections++;
}
_root.last = "";
}
}
Instance of Symbol 259 MovieClip in Frame 23
on (press) {
if (_root.con2 == false) {
_root.last = "yellow";
_root.drag = true;
_root.actions.pendown = true;
_root.con2 = true;
with (_root.drawingPlane) {
lineStyle(1, 0, _root.actions.cA);
moveTo(238.5, 295.5);
_root.drawingPlane.lineTo(_root._xmouse, _root._ymouse);
}
}
}
on (rollOver) {
if ((_root.drag == true) && (_root.con2 == false)) {
_root.drawingPlane.lineTo(238.5, 295.5);
_root.drag = false;
_root.con2 = true;
if (_root.last == "purple") {
_root.connections++;
}
_root.last = "";
}
}
Instance of Symbol 259 MovieClip in Frame 23
on (press) {
if (_root.con3 == false) {
_root.last = "red";
_root.drag = true;
_root.actions.pendown = true;
_root.con3 = true;
with (_root.drawingPlane) {
lineStyle(1, 0, _root.actions.cA);
moveTo(267, 298);
_root.drawingPlane.lineTo(_root._xmouse, _root._ymouse);
}
}
}
on (rollOver) {
if ((_root.drag == true) && (_root.con3 == false)) {
_root.drawingPlane.lineTo(267, 298);
_root.drag = false;
_root.con3 = true;
if (_root.last == "teal") {
_root.connections++;
}
_root.last = "";
}
}
Instance of Symbol 259 MovieClip in Frame 23
on (press) {
if (_root.con4 == false) {
_root.last = "green";
_root.drag = true;
_root.actions.pendown = true;
_root.con4 = true;
with (_root.drawingPlane) {
lineStyle(1, 0, _root.actions.cA);
moveTo(298, 299.5);
_root.drawingPlane.lineTo(_root._xmouse, _root._ymouse);
}
}
}
on (rollOver, dragOver) {
if ((_root.drag == true) && (_root.con4 == false)) {
_root.drawingPlane.lineTo(298, 299.5);
_root.drag = false;
_root.con4 = true;
if (_root.last == "orange") {
_root.connections++;
}
_root.last = "";
}
}
Instance of Symbol 259 MovieClip in Frame 23
on (press) {
if (_root.con5 == false) {
_root.drag = true;
_root.last = "teal";
_root.actions.pendown = true;
_root.con5 = true;
with (_root.drawingPlane) {
lineStyle(1, 0, _root.actions.cA);
moveTo(205, 97);
_root.drawingPlane.lineTo(_root._xmouse, _root._ymouse);
}
}
}
on (rollOver, dragOver) {
if ((_root.drag == true) && (_root.con5 == false)) {
_root.drawingPlane.lineTo(205, 97);
_root.drag = false;
_root.con5 = true;
if (_root.last == "red") {
_root.connections++;
}
_root.last = "";
}
}
Instance of Symbol 259 MovieClip in Frame 23
on (press) {
if (_root.con6 == false) {
_root.drag = true;
_root.last = "brown";
_root.actions.pendown = true;
_root.con6 = true;
with (_root.drawingPlane) {
lineStyle(1, 0, _root.actions.cA);
moveTo(235, 97);
_root.drawingPlane.lineTo(_root._xmouse, _root._ymouse);
}
}
}
on (rollOver) {
if ((_root.drag == true) && (_root.con6 == false)) {
_root.drawingPlane.lineTo(235, 97);
_root.drag = false;
_root.con6 = true;
if (_root.last == "blue") {
_root.connections++;
}
_root.last = "";
}
}
Instance of Symbol 259 MovieClip in Frame 23
on (press) {
if (_root.con7 == false) {
_root.drag = true;
_root.last = "purple";
_root.actions.pendown = true;
_root.con7 = true;
with (_root.drawingPlane) {
lineStyle(1, 0, _root.actions.cA);
moveTo(262, 95);
_root.drawingPlane.lineTo(_root._xmouse, _root._ymouse);
}
}
}
on (rollOver) {
if ((_root.drag == true) && (_root.con7 == false)) {
_root.drawingPlane.lineTo(262, 95);
_root.drag = false;
_root.con7 = true;
if (_root.last == "yellow") {
_root.connections++;
}
_root.last = "";
}
}
Instance of Symbol 259 MovieClip in Frame 23
on (press) {
if (_root.con8 == false) {
_root.drag = true;
_root.last = "orange";
_root.actions.pendown = true;
_root.con8 = true;
with (_root.drawingPlane) {
lineStyle(1, 0, _root.actions.cA);
moveTo(295, 93);
_root.drawingPlane.lineTo(_root._xmouse, _root._ymouse);
}
}
}
on (rollOver) {
if ((_root.drag == true) && (_root.con8 == false)) {
_root.drawingPlane.lineTo(295, 93);
_root.drag = false;
_root.con8 = true;
if (_root.last == "green") {
_root.connections++;
}
_root.last = "";
}
}
Instance of Symbol 190 MovieClip in Frame 23
on (release) {
stopAllSounds();
_root.gotoAndStop(2);
}
Instance of Symbol 267 MovieClip "col2" in Frame 23
onClipEvent (load) {
this._x = random(126) + 18;
this._y = random(364.4) + 18;
}
on (press) {
this.startDrag(false, 18, 18, 145, 382.4);
}
on (release) {
this.stopDrag();
}
Instance of Symbol 268 MovieClip "col3" in Frame 23
onClipEvent (load) {
this._x = random(126) + 18;
this._y = random(364.4) + 18;
}
on (press) {
this.startDrag(false, 18, 18, 145, 382.4);
}
on (release) {
this.stopDrag();
}
Instance of Symbol 269 MovieClip "col4" in Frame 23
onClipEvent (load) {
this._x = random(126) + 18;
this._y = random(364.4) + 18;
}
on (press) {
this.startDrag(false, 18, 18, 145, 382.4);
}
on (release) {
this.stopDrag();
}
Instance of Symbol 270 MovieClip "col1" in Frame 23
onClipEvent (load) {
this._x = random(126) + 18;
this._y = random(364.4) + 18;
}
on (press) {
this.startDrag(false, 18, 18, 145, 382.4);
}
on (release) {
this.stopDrag();
}
Instance of Symbol 192 MovieClip in Frame 23
onClipEvent (enterFrame) {
_root.seconds = _root.seconds + ((getTimer() - _root.timebegin) / 1000);
_root.timebegin = getTimer();
_root.locSO.data.timer = _root.seconds;
}
Frame 24
col1.topcolor._alpha = ((col1._y - 18) / 364.4) * 100;
col2.topcolor._alpha = ((col2._y - 18) / 364.4) * 100;
col3.topcolor._alpha = ((col3._y - 18) / 364.4) * 100;
col4.topcolor._alpha = ((col4._y - 18) / 364.4) * 100;
phone.message.setVolume(((_root.phone._y - 45) / 165) * 100);
_root.onEnterFrame = function () {
if ((_root.connections == 4) && (_root.neverbeendone == true)) {
base.phonecall.start(0, 100);
phone.message.start(0, 500);
_root.neverbeendone = false;
}
};
_root.onMouseUp = function () {
_root.actions.pendown = false;
};
Instance of Symbol 267 MovieClip "col2" in Frame 24
onClipEvent (load) {
this._x = random(126) + 18;
this._y = random(364.4) + 18;
}
on (press) {
this.startDrag(false, 18, 18, 145, 382.4);
}
on (release, releaseOutside) {
this.stopDrag();
}
Instance of Symbol 268 MovieClip "col3" in Frame 24
onClipEvent (load) {
this._x = random(126) + 18;
this._y = random(364.4) + 18;
}
on (press) {
this.startDrag(false, 18, 18, 145, 382.4);
}
on (release, releaseOutside) {
this.stopDrag();
}
Instance of Symbol 269 MovieClip "col4" in Frame 24
onClipEvent (load) {
this._x = random(126) + 18;
this._y = random(364.4) + 18;
}
on (press) {
this.startDrag(false, 18, 18, 145, 382.4);
}
on (release, releaseOutside) {
this.stopDrag();
}
Instance of Symbol 270 MovieClip "col1" in Frame 24
onClipEvent (load) {
this._x = random(126) + 18;
this._y = random(364.4) + 18;
}
on (press) {
this.startDrag(false, 18, 18, 145, 382.4);
}
on (release, releaseOutside) {
this.stopDrag();
}
Frame 25
gotoAndPlay(_currentframe - 1);
Frame 28
function selfright() {
_root.yel3._x = tile1._x;
_root.yel2._x = tile2._x;
_root.yel1._x = tile3._x;
_root.yel4._x = tile4._x;
_root.yel3._y = tile1._y;
_root.yel2._y = tile2._y;
_root.yel1._y = tile3._y;
_root.yel4._y = tile4._y;
_root.yel3._rotation = tile1._rotation + 180;
_root.yel2._rotation = tile2._rotation + 90;
_root.yel1._rotation = tile3._rotation - 90;
_root.yel4._rotation = tile4._rotation;
_root.re2._x = tile1._x;
_root.re4._x = tile2._x;
_root.re3._x = tile3._x;
_root.re1._x = tile4._x;
_root.re2._y = tile1._y;
_root.re4._y = tile2._y;
_root.re3._y = tile3._y;
_root.re1._y = tile4._y;
_root.re2._rotation = tile1._rotation + 90;
_root.re4._rotation = tile2._rotation + 180;
_root.re3._rotation = tile3._rotation;
_root.re1._rotation = tile4._rotation - 90;
_root.gre2._x = tile1._x;
_root.gre1._x = tile2._x;
_root.gre4._x = tile3._x;
_root.gre3._x = tile4._x;
_root.gre2._y = tile1._y;
_root.gre1._y = tile2._y;
_root.gre4._y = tile3._y;
_root.gre3._y = tile4._y;
_root.gre2._rotation = tile1._rotation - 90;
_root.gre1._rotation = tile2._rotation;
_root.gre4._rotation = tile3._rotation + 90;
_root.gre3._rotation = tile4._rotation + 180;
_root.blu1._x = tile1._x;
_root.blu4._x = tile2._x;
_root.blu2._x = tile3._x;
_root.blu3._x = tile4._x;
_root.blu1._y = tile1._y;
_root.blu4._y = tile2._y;
_root.blu2._y = tile3._y;
_root.blu3._y = tile4._y;
_root.blu1._rotation = tile1._rotation;
_root.blu4._rotation = tile2._rotation - 90;
_root.blu2._rotation = tile3._rotation + 90;
_root.blu3._rotation = tile4._rotation;
}
function swapstart() {
swap1._x = _xmouse;
swap1._y = _ymouse;
swap2._x = _xmouse;
swap2._y = _ymouse;
_root.swapper = true;
Mouse.hide();
}
function swapstop() {
_root.swapper = false;
Mouse.show();
swap1._x = 600;
swap1._y = 600;
swap2._x = 600;
swap2._y = 600;
}
_root.mode = "none";
_root.down = false;
_root.swapper = false;
_root.justswapped = false;
_root.reswap = false;
Frame 29
_root.onEnterFrame = function () {
redmask._x = redlen._x;
redmask._y = redlen._y;
bluemask._x = bluelen._x;
bluemask._y = bluelen._y;
greenmask._x = greenlen._x;
greenmask._y = greenlen._y;
yellowmask._x = yellowlen._x;
yellowmask._y = yellowlen._y;
};
Instance of Symbol 274 MovieClip "tile1" in Frame 29
on (press) {
Ypos = _root._ymouse;
down = true;
rot = this._rotation;
if (_root.mode == "move") {
_root.firstx = this._x;
_root.firsty = this._y;
_root.secondx = this._x;
_root.secondy = this._y;
_root.justswapped = false;
firstswapper = true;
_root.swapstart();
}
}
on (rollOver) {
if (_root.justswapped == true) {
_root.secondx = this._x;
_root.secondy = this._y;
this._x = _root.firstx;
this._y = _root.firsty;
_root.reswap = true;
_root.justswapped = false;
}
}
on (release, releaseOutside) {
down = false;
if (_root.mode == "move") {
_root.swapstop();
_root.justswapped = true;
}
rot = this._rotation;
if ((rot > -15) && (rot < 15)) {
this._rotation = 0;
}
if ((rot > 75) && (rot < 105)) {
this._rotation = 90;
}
if (((rot > 165) && (rot <= 180)) || ((rot < -165) && (rot >= -180))) {
this._rotation = 180;
}
if ((rot > -105) && (rot < -75)) {
this._rotation = -90;
}
}
onClipEvent (enterFrame) {
if ((down == true) && (_root.mode == "turn")) {
this._rotation = this._rotation + ((Ypos - _root._ymouse) / 20);
}
if ((_root.reswap == true) && (firstswapper == true)) {
this._x = _root.secondx;
this._y = _root.secondy;
_root.reswap = false;
firstswapper = false;
}
}
Instance of Symbol 277 MovieClip "tile2" in Frame 29
on (press) {
Ypos = _root._ymouse;
down = true;
rot = this._rotation;
if (_root.mode == "move") {
_root.firstx = this._x;
_root.firsty = this._y;
_root.secondx = this._x;
_root.secondy = this._y;
_root.justswapped = false;
firstswapper = true;
_root.swapstart();
}
}
on (rollOver) {
if (_root.justswapped == true) {
_root.secondx = this._x;
_root.secondy = this._y;
this._x = _root.firstx;
this._y = _root.firsty;
_root.reswap = true;
_root.justswapped = false;
}
}
on (release, releaseOutside) {
down = false;
if (_root.mode == "move") {
_root.swapstop();
_root.justswapped = true;
}
rot = this._rotation;
if ((rot > -15) && (rot < 15)) {
this._rotation = 0;
}
if ((rot > 75) && (rot < 105)) {
this._rotation = 90;
}
if (((rot > 165) && (rot <= 180)) || ((rot < -165) && (rot >= -180))) {
this._rotation = 180;
}
if ((rot > -105) && (rot < -75)) {
this._rotation = -90;
}
}
onClipEvent (enterFrame) {
if ((down == true) && (_root.mode == "turn")) {
this._rotation = this._rotation + ((Ypos - _root._ymouse) / 20);
}
if ((_root.reswap == true) && (firstswapper == true)) {
this._x = _root.secondx;
this._y = _root.secondy;
_root.reswap = false;
firstswapper = false;
}
}
Instance of Symbol 280 MovieClip "tile3" in Frame 29
on (press) {
Ypos = _root._ymouse;
down = true;
rot = this._rotation;
if (_root.mode == "move") {
_root.firstx = this._x;
_root.firsty = this._y;
_root.secondx = this._x;
_root.secondy = this._y;
_root.justswapped = false;
firstswapper = true;
_root.swapstart();
}
}
on (rollOver) {
if (_root.justswapped == true) {
_root.secondx = this._x;
_root.secondy = this._y;
this._x = _root.firstx;
this._y = _root.firsty;
_root.reswap = true;
_root.justswapped = false;
}
}
on (release, releaseOutside) {
down = false;
if (_root.mode == "move") {
_root.swapstop();
_root.justswapped = true;
}
rot = this._rotation;
if ((rot > -15) && (rot < 15)) {
this._rotation = 0;
}
if ((rot > 75) && (rot < 105)) {
this._rotation = 90;
}
if (((rot > 165) && (rot <= 180)) || ((rot < -165) && (rot >= -180))) {
this._rotation = 180;
}
if ((rot > -105) && (rot < -75)) {
this._rotation = -90;
}
}
onClipEvent (enterFrame) {
if ((down == true) && (_root.mode == "turn")) {
this._rotation = this._rotation + ((Ypos - _root._ymouse) / 20);
}
if ((_root.reswap == true) && (firstswapper == true)) {
this._x = _root.secondx;
this._y = _root.secondy;
_root.reswap = false;
firstswapper = false;
}
}
Instance of Symbol 283 MovieClip "tile4" in Frame 29
on (press) {
Ypos = _root._ymouse;
down = true;
rot = this._rotation;
if (_root.mode == "move") {
_root.firstx = this._x;
_root.firsty = this._y;
_root.secondx = this._x;
_root.secondy = this._y;
_root.justswapped = false;
firstswapper = true;
_root.swapstart();
}
}
on (rollOver) {
if (_root.justswapped == true) {
_root.secondx = this._x;
_root.secondy = this._y;
this._x = _root.firstx;
this._y = _root.firsty;
_root.reswap = true;
_root.justswapped = false;
}
}
on (release, releaseOutside) {
down = false;
if (_root.mode == "move") {
_root.swapstop();
_root.justswapped = true;
}
rot = this._rotation;
if ((rot > -15) && (rot < 15)) {
this._rotation = 0;
}
if ((rot > 75) && (rot < 105)) {
this._rotation = 90;
}
if (((rot > 165) && (rot <= 180)) || ((rot < -165) && (rot >= -180))) {
this._rotation = 180;
}
if ((rot > -105) && (rot < -75)) {
this._rotation = -90;
}
}
onClipEvent (enterFrame) {
if ((down == true) && (_root.mode == "turn")) {
this._rotation = this._rotation + ((Ypos - _root._ymouse) / 20);
}
if ((_root.reswap == true) && (firstswapper == true)) {
this._x = _root.secondx;
this._y = _root.secondy;
_root.reswap = false;
firstswapper = false;
}
}
Instance of Symbol 285 MovieClip "swap1" in Frame 29
onClipEvent (enterFrame) {
if (_root.swapper == true) {
Xpos = _root._xmouse;
Ypos = _root._ymouse;
gearXpos = this._x;
gearYpos = this._y;
x = Xpos - gearXpos;
y = Ypos - gearYpos;
r = Math.sqrt((x * x) + (y * y));
angleB = y / r;
angle = Math.asin(angleB);
if (Xpos < gearXpos) {
this._rotation = -180 - (angle / 0.0175);
} else if (Xpos > gearXpos) {
this._rotation = angle / 0.0175;
}
_root.swap2._x = _root._xmouse;
_root.swap2._y = _root._ymouse;
_root.swap2._rotation = this._rotation;
}
}
Instance of Symbol 287 MovieClip "swap2" in Frame 29
on (press, dragOver) {
down = true;
}
on (release, releaseOutside) {
trace(this._rotation);
down = false;
this.stopDrag();
}
onClipEvent (enterFrame) {
if (down == true) {
Xpos = _root._xmouse;
Ypos = _root._ymouse;
gearXpos = this._x;
gearYpos = this._y;
x = Xpos - gearXpos;
y = Ypos - gearYpos;
r = Math.sqrt((x * x) + (y * y));
angleB = y / r;
angle = Math.asin(angleB);
if (Xpos < gearXpos) {
this._rotation = -180 - (angle / 0.0175);
} else if (Xpos > gearXpos) {
this._rotation = angle / 0.0175;
}
}
}
Instance of Symbol 296 MovieClip "yellowlen" in Frame 29
onClipEvent (load) {
moveto = false;
}
on (press) {
moveto = false;
_root.selfright();
_root.Sblue._visible = true;
this.startDrag(false);
}
on (release, releaseOutside) {
this.stopDrag();
moveto = true;
_root.Sblue._visible = false;
}
onClipEvent (enterFrame) {
if (moveto == true) {
thex = 578;
they = 219;
if ((((this._x >= (thex - 1)) && (this._x <= (thex + 1))) && (this._y >= (they - 1))) && (this._y <= (they + 1))) {
moveto = false;
}
_root.yChange = they - this._y;
_root.yMove = _root.yChange / 5;
_root.xChange = thex - this._x;
_root.xMove = _root.xChange / 10;
this._x = this._x + _root.xMove;
this._y = this._y + _root.yMove;
}
}
Instance of Symbol 308 MovieClip "greenlen" in Frame 29
onClipEvent (load) {
moveto = false;
}
on (press) {
moveto = false;
_root.selfright();
_root.Syellow._visible = true;
this.startDrag(false);
}
on (release, releaseOutside) {
this.stopDrag();
_root.Syellow._visible = false;
moveto = true;
}
onClipEvent (enterFrame) {
if (moveto == true) {
thex = 578;
they = 96;
if ((((this._x >= (thex - 1)) && (this._x <= (thex + 1))) && (this._y >= (they - 1))) && (this._y <= (they + 1))) {
moveto = false;
}
_root.yChange = they - this._y;
_root.yMove = _root.yChange / 5;
_root.xChange = thex - this._x;
_root.xMove = _root.xChange / 10;
this._x = this._x + _root.xMove;
this._y = this._y + _root.yMove;
}
}
Instance of Symbol 319 MovieClip "bluelen" in Frame 29
onClipEvent (load) {
moveto = false;
}
on (press) {
moveto = false;
_root.selfright();
_root.Sred._visible = true;
this.startDrag(false);
}
on (release, releaseOutside) {
this.stopDrag();
moveto = true;
_root.Sred._visible = false;
}
onClipEvent (enterFrame) {
if (moveto == true) {
thex = -29;
they = 219;
if ((((this._x >= (thex - 1)) && (this._x <= (thex + 1))) && (this._y >= (they - 1))) && (this._y <= (they + 1))) {
moveto = false;
}
_root.yChange = they - this._y;
_root.yMove = _root.yChange / 5;
_root.xChange = thex - this._x;
_root.xMove = _root.xChange / 10;
this._x = this._x + _root.xMove;
this._y = this._y + _root.yMove;
}
}
Instance of Symbol 329 MovieClip "redlen" in Frame 29
onClipEvent (load) {
moveto = false;
}
on (press) {
moveto = false;
_root.selfright();
_root.Sgreen._visible = true;
this.startDrag(false);
}
on (release, releaseOutside) {
this.stopDrag();
moveto = true;
_root.Sgreen._visible = false;
}
onClipEvent (enterFrame) {
if (moveto == true) {
thex = -29;
they = 96;
if ((((this._x >= (thex - 1)) && (this._x <= (thex + 1))) && (this._y >= (they - 1))) && (this._y <= (they + 1))) {
moveto = false;
}
_root.yChange = they - this._y;
_root.yMove = _root.yChange / 5;
_root.xChange = thex - this._x;
_root.xMove = _root.xChange / 10;
this._x = this._x + _root.xMove;
this._y = this._y + _root.yMove;
}
}
Instance of Symbol 339 MovieClip "Sblue" in Frame 29
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 341 MovieClip "Sred" in Frame 29
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 343 MovieClip "Syellow" in Frame 29
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 345 MovieClip "Sgreen" in Frame 29
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 348 MovieClip in Frame 29
on (press) {
this.startDrag(false, 37.45, 382.5, 126, 382.45);
}
on (release, releaseOutside) {
this.stopDrag();
if (this._x <= 40) {
_root.mode = "move";
_root.movel.gotoAndStop(2);
_root.turnl.gotoAndStop(1);
}
if (this._x >= 122) {
_root.mode = "turn";
_root.movel.gotoAndStop(1);
_root.turnl.gotoAndStop(2);
}
if ((this._x > 81) && (this._x < 91)) {
_root.mode = "none";
_root.movel.gotoAndStop(1);
_root.turnl.gotoAndStop(1);
}
}
Instance of Symbol 190 MovieClip in Frame 29
on (release) {
stopAllSounds();
_root.gotoAndStop(2);
}
Instance of Symbol 192 MovieClip in Frame 29
onClipEvent (enterFrame) {
_root.seconds = _root.seconds + ((getTimer() - _root.timebegin) / 1000);
_root.timebegin = getTimer();
_root.locSO.data.timer = _root.seconds;
}
Frame 30
gotoAndPlay(_currentframe - 1);
Instance of Symbol 362 MovieClip "machinecolor" in Frame 34
onClipEvent (load) {
thecolor = "";
slot1 = false;
slot2 = false;
}
Instance of Symbol 379 MovieClip "yellowcan" in Frame 34
onClipEvent (load) {
inside = false;
}
on (press) {
if (inside == false) {
if (_root.machinecolor.slot1 == false) {
_root.canguide1.gotoAndPlay(2);
}
if (_root.machinecolor.slot2 == false) {
_root.canguide2.gotoAndPlay(2);
}
this.startDrag(true);
}
}
on (release) {
_root.canguide1.gotoAndStop(1);
_root.canguide2.gotoAndStop(1);
this.stopDrag();
if ((((((this._x >= 354) && (this._x <= 368)) && (this._y >= 288)) && (this._y <= 305)) && (inside == false)) && (_root.machinecolor.slot1 == false)) {
this._x = 357;
this._y = 298;
_root.machinecolor.slot1 = true;
_root.canmask3.gotoAndStop(2);
inside = true;
play();
}
if ((((((this._x >= 354) && (this._x <= 368)) && (this._y >= 322)) && (this._y <= 345)) && (inside == false)) && (_root.machinecolor.slot2 == false)) {
this._x = 357;
this._y = 334;
_root.machinecolor.slot2 = true;
_root.canmask3.gotoAndStop(2);
inside = true;
play();
}
}
Instance of Symbol 382 MovieClip "bluecan" in Frame 34
onClipEvent (load) {
inside = false;
}
on (press) {
if (inside == false) {
if (_root.machinecolor.slot1 == false) {
_root.canguide1.gotoAndPlay(2);
}
if (_root.machinecolor.slot2 == false) {
_root.canguide2.gotoAndPlay(2);
}
this.startDrag(true);
}
}
on (release) {
_root.canguide1.gotoAndStop(1);
_root.canguide2.gotoAndStop(1);
this.stopDrag();
if ((((((this._x >= 354) && (this._x <= 368)) && (this._y >= 288)) && (this._y <= 305)) && (inside == false)) && (_root.machinecolor.slot1 == false)) {
this._x = 357;
this._y = 298;
_root.machinecolor.slot1 = true;
_root.canmask2.gotoAndStop(2);
inside = true;
play();
}
if ((((((this._x >= 354) && (this._x <= 368)) && (this._y >= 322)) && (this._y <= 345)) && (inside == false)) && (_root.machinecolor.slot2 == false)) {
this._x = 357;
this._y = 334;
_root.machinecolor.slot2 = true;
_root.canmask2.gotoAndStop(2);
inside = true;
play();
}
}
Instance of Symbol 385 MovieClip "redcan" in Frame 34
onClipEvent (load) {
inside = false;
}
on (press) {
if (inside == false) {
if (_root.machinecolor.slot1 == false) {
_root.canguide1.gotoAndPlay(2);
}
if (_root.machinecolor.slot2 == false) {
_root.canguide2.gotoAndPlay(2);
}
this.startDrag(true);
}
}
on (release) {
_root.canguide1.gotoAndStop(1);
_root.canguide2.gotoAndStop(1);
this.stopDrag();
if ((((((this._x >= 354) && (this._x <= 368)) && (this._y >= 288)) && (this._y <= 305)) && (inside == false)) && (_root.machinecolor.slot1 == false)) {
this._x = 357;
this._y = 298;
_root.machinecolor.slot1 = true;
_root.canmask1.gotoAndStop(2);
inside = true;
play();
}
if ((((((this._x >= 354) && (this._x <= 368)) && (this._y >= 322)) && (this._y <= 345)) && (inside == false)) && (_root.machinecolor.slot2 == false)) {
this._x = 357;
this._y = 334;
_root.machinecolor.slot2 = true;
_root.canmask1.gotoAndStop(2);
inside = true;
play();
}
}
Instance of Symbol 400 MovieClip "exitsign" in Frame 34
onClipEvent (load) {
this._visible = false;
}
on (release) {
_root.right = 0;
_root.box1check.gotoAndPlay(33);
_root.box2check.gotoAndPlay(33);
_root.box3check.gotoAndPlay(33);
_root.box4check.gotoAndPlay(33);
}
Instance of Symbol 503 MovieClip "main" in Frame 34
onClipEvent (load) {
nomove = false;
_root.color1 = 0;
_root.color2 = 0;
_root.color3 = 0;
_root.color4 = 0;
box_1_col.mod = 1;
box_2_col.mod = 1;
box_3_col.mod = 1;
box_4_col.mod = 1;
moveto = false;
_root.right = 0;
}
on (press) {
_root.masker.gotoAndStop(1);
_root.guide1.play();
_root.guide2.play();
if (this._currentframe == 35) {
this._x = 494;
this._y = 70;
gotoAndStop (1);
}
if (this._currentframe == 75) {
this._x = 464;
this._y = 206;
gotoAndStop (1);
}
if ((moveto == false) && (nomove == false)) {
gotoAndStop (1);
this.startDrag();
}
}
on (release) {
this.stopDrag();
_root.guide1.gotoAndStop(1);
_root.guide2.gotoAndStop(1);
if ((((this._x >= 145) && (this._x <= 183)) && (this._y >= 50)) && (this._y <= 98)) {
_root.masker.gotoAndStop(2);
nomove = true;
this._x = 168;
this._y = 70;
play();
}
if ((((this._x >= 445) && (this._x <= 483)) && (this._y >= 185)) && (this._y <= 219)) {
_root.masker.gotoAndStop(3);
nomove = true;
this._x = 464;
this._y = 206;
gotoAndPlay (40);
}
}
onClipEvent (enterFrame) {
if (moveto == true) {
if ((((this._x >= 255) && (this._x <= 257)) && (this._y >= 211)) && (this._y <= 213)) {
moveto = false;
_root.fadeit.play();
}
_root.yChange = 212 - this._y;
_root.yMove = _root.yChange / 5;
_root.xChange = 256 - this._x;
_root.xMove = _root.xChange / 13;
this._x = this._x + _root.xMove;
this._y = this._y + _root.yMove;
}
}
Instance of Symbol 514 MovieClip in Frame 34
onClipEvent (load) {
_root.main.keys.setMask(this);
}
onClipEvent (enterFrame) {
this._x = _root.edge._x;
this._y = _root.edge._y;
}
Instance of Symbol 516 MovieClip "edge" in Frame 34
onClipEvent (load) {
_root.main.keys.setMask(this);
}
on (release) {
this.stopDrag();
_root.light.gotoAndStop(1);
Mouse.show();
this._x = -126;
this._y = 70;
_root.yup = false;
}
Instance of Symbol 520 MovieClip "light" in Frame 34
on (rollOver) {
if (_root.yup == false) {
this.gotoAndStop(2);
}
if ((_root.themenu._currentframe == 1) && (_root.yup == false)) {
_root.themenu.gotoAndPlay(2);
}
if (_root.themenu._currentframe == 18) {
_root.themenu.gotoAndStop(1);
}
}
on (releaseOutside, rollOut) {
if (_root.yup == false) {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
_root.yup = false;
}
Instance of Symbol 190 MovieClip in Frame 34
on (release) {
stopAllSounds();
_root.gotoAndStop(2);
}
Instance of Symbol 192 MovieClip in Frame 34
onClipEvent (enterFrame) {
_root.seconds = _root.seconds + ((getTimer() - _root.timebegin) / 1000);
_root.timebegin = getTimer();
_root.locSO.data.timer = _root.seconds;
}
Frame 35
gotoAndPlay(_currentframe - 1);
Frame 37
function movement(numx, numy) {
if (_root.arrowkeyhit == 20) {
_root.helpdesk.play();
}
hit = false;
y = 0;
while (y <= _root.chosen.length) {
eval (("_root." + _root.chosen[y]) + ".hitter")._y = eval (("_root." + _root.chosen[y]) + ".hitter")._y + numy;
eval (("_root." + _root.chosen[y]) + ".hitter")._x = eval (("_root." + _root.chosen[y]) + ".hitter")._x + numx;
y++;
}
y = 0;
while (y <= _root.chosen.length) {
x = 0;
while (x <= _root.solids.length) {
if (eval (("_root." + _root.chosen[y]) + ".hitter").hitTest(eval ("_root." + _root.solids[x]).hitter) && (_root.chosen[y] != _root.solids[x])) {
hit = true;
}
x++;
}
y++;
}
if (hit == false) {
z = 0;
while (z <= _root.chosen.length) {
eval ("_root." + _root.chosen[z])._y = eval ("_root." + _root.chosen[z])._y + numy;
eval ("_root." + _root.chosen[z])._x = eval ("_root." + _root.chosen[z])._x + numx;
z++;
}
}
x = 0;
while (x <= _root.chosen.length) {
eval (("_root." + _root.chosen[x]) + ".hitter")._x = eval (("_root." + _root.chosen[x]) + ".hitter")._x + (-numx);
eval (("_root." + _root.chosen[x]) + ".hitter")._y = eval (("_root." + _root.chosen[x]) + ".hitter")._y + (-numy);
x++;
}
norose();
checknail();
}
function checknail() {
hit2 = false;
_root.gun.thegun.nailcheck._x = _root.gun.thegun.nailcheck._x + -36;
x = 0;
while (x <= _root.blocks.length) {
if (_root.gun.thegun.nailcheck.hitTest(eval ("_root." + _root.blocks[x]))) {
hit2 = true;
}
x++;
}
if (hit2 == true) {
_root.firebutton.gotoAndStop(2);
} else {
_root.firebutton.gotoAndStop(1);
}
_root.gun.thegun.nailcheck._x = _root.gun.thegun.nailcheck._x + 36;
}
function piecepress(piece) {
x = 0;
while (x <= (_root.chosen.length - 1)) {
eval ("_root." + _root.chosen[x]).gotoAndStop(1);
eval ("_root." + _root.chosen[x]).swapDepths(eval ("_root." + _root.chosen[x]).defaultd);
x++;
}
_root.chosen = eval ("_root." + piece).connected;
x = 0;
while (x <= (_root.chosen.length - 1)) {
eval ("_root." + _root.chosen[x]).gotoAndStop(2);
eval ("_root." + _root.chosen[x]).swapDepths(x + 10);
x++;
}
}
function regroupblocks() {
x = 0;
while (x <= (_root.group3.length - 1)) {
y = 0;
while (y <= (_root.group1.length - 1)) {
if (_root.group3[x] == _root.group1[y]) {
_root.group1 = _root.group1.concat(_root.group3);
_root.group3.length = 0;
}
y++;
}
x++;
}
x = 0;
while (x <= (_root.group2.length - 1)) {
y = 0;
while (y <= (_root.group1.length - 1)) {
if (_root.group2[x] == _root.group1[y]) {
_root.group1 = _root.group1.concat(_root.group2);
_root.group2.length = 0;
}
y++;
}
x++;
}
if (_root.group1.length != 0) {
_root.temp = new Array();
x = 0;
while (x <= 5) {
y = 0;
while (y <= (_root.group1.length - 1)) {
if (_root.blocks[x] == _root.group1[y]) {
_root.temp.push(_root.blocks[x]);
break;
}
y++;
}
x++;
}
_root.group1 = _root.temp;
}
if (_root.group2.length != 0) {
_root.temp = new Array();
x = 0;
while (x <= 5) {
y = 0;
while (y <= (_root.group2.length - 1)) {
if (_root.blocks[x] == _root.group2[y]) {
_root.temp.push(_root.blocks[x]);
break;
}
y++;
}
x++;
}
_root.group2 = _root.temp;
}
if (_root.group3.length != 0) {
_root.temp = new Array();
x = 0;
while (x <= 5) {
y = 0;
while (y <= (_root.group3.length - 1)) {
if (_root.blocks[x] == _root.group3[y]) {
_root.temp.push(_root.blocks[x]);
break;
}
y++;
}
x++;
}
_root.group3 = _root.temp;
}
if (_root.group4.length != 0) {
_root.temp = new Array();
x = 0;
while (x <= 5) {
y = 0;
while (y <= (_root.group4.length - 1)) {
if (_root.blocks[x] == _root.group4[y]) {
_root.temp.push(_root.blocks[x]);
break;
}
y++;
}
x++;
}
_root.group4 = _root.temp;
}
x = 0;
while (x <= _root.group1.length) {
eval ("_root." + _root.group1[x]).connected = _root.group1;
x++;
}
x = 0;
while (x <= _root.group2.length) {
eval ("_root." + _root.group2[x]).connected = _root.group2;
x++;
}
x = 0;
while (x <= _root.group3.length) {
eval ("_root." + _root.group3[x]).connected = _root.group3;
x++;
}
x = 0;
while (x <= _root.group4.length) {
eval ("_root." + _root.group4[x]).connected = _root.group4;
x++;
}
}
function norose() {
if (_root.nail1.buddy != "") {
_root.nail1._x = eval (_root.nail1.buddy)._x + _root.nail1.buddyXdiff;
_root.nail1._y = eval (_root.nail1.buddy)._y + _root.nail1.buddyYdiff;
}
if (_root.nail2.buddy != "") {
_root.nail2._x = eval (_root.nail2.buddy)._x + _root.nail2.buddyXdiff;
_root.nail2._y = eval (_root.nail2.buddy)._y + _root.nail2.buddyYdiff;
}
if (_root.nail3.buddy != "") {
_root.nail3._x = eval (_root.nail3.buddy)._x + _root.nail3.buddyXdiff;
_root.nail3._y = eval (_root.nail3.buddy)._y + _root.nail3.buddyYdiff;
}
if (_root.nail4.buddy != "") {
_root.nail4._x = eval (_root.nail4.buddy)._x + _root.nail4.buddyXdiff;
_root.nail4._y = eval (_root.nail4.buddy)._y + _root.nail4.buddyYdiff;
}
}
relevel();
zero = getTimer();
stop();
Instance of Symbol 523 MovieClip in Frame 37
on (press) {
x = 0;
while (x <= (_root.chosen.length - 1)) {
eval ("_root." + _root.chosen[x]).gotoAndStop(1);
eval ("_root." + _root.chosen[x]).swapDepths(eval ("_root." + _root.chosen[x]).defaultd);
x++;
}
_root.chosen = new Array();
}
onClipEvent (load) {
this.useHandCursor = false;
}
Instance of Symbol 527 MovieClip "nail1" in Frame 37
onClipEvent (load) {
buddy = "";
buddyXdiff = 0;
buddyYdiff = 0;
this.swapDepths(-150);
nailedblocks = new Array();
}
Instance of Symbol 528 MovieClip "nail2" in Frame 37
onClipEvent (load) {
buddy = "";
buddyXdiff = 0;
buddyYdiff = 0;
this.swapDepths(-180);
nailedblocks = new Array();
}
Instance of Symbol 529 MovieClip "nail3" in Frame 37
onClipEvent (load) {
buddy = "";
buddyXdiff = 0;
buddyYdiff = 0;
this.swapDepths(-190);
nailedblocks = new Array();
}
Instance of Symbol 530 MovieClip "nail4" in Frame 37
onClipEvent (load) {
buddy = "";
buddyXdiff = 0;
buddyYdiff = 0;
this.swapDepths(-200);
nailedblocks = new Array();
}
Instance of Symbol 543 MovieClip in Frame 37
onClipEvent (load) {
_root.cranedown = 0;
_root.nailed = 0;
_root.grabbed = "";
_root.goingdown = false;
_root.completed2 = false;
_root.arrowkeyhit = 0;
_root.group1 = new Array();
_root.group2 = new Array();
_root.group3 = new Array();
_root.group4 = new Array();
_root.nails = 3;
_root.chosen = new Array();
_root.rotx = -36;
_root.nailnum = 1;
_root.chosen = new Array();
_root.chosen.length = 1;
_root.temp = new Array();
_root.nails = new Array("nail1", "nail2", "nail3", "nail4");
_root.blocks = new Array("block1", "block2", "block3", "block4", "block5", "block6");
_root.solids = new Array("block1", "block2", "block3", "block4", "block5", "block6", "gun", "bound1", "bound2", "bound3", "bound4", "bound5");
}
on (keyPress "<End>") {
trace("Group1:");
trace(_root.group1);
trace("Group2:");
trace(_root.group2);
trace("Group3:");
trace(_root.group3);
trace("Group4:");
trace(_root.group4);
}
Instance of Symbol 550 MovieClip "gun" in Frame 37
onClipEvent (load) {
connected = new Array(_name);
this.swapDepths(5);
}
on (press) {
_root.piecepress(_name);
}
Instance of Symbol 553 MovieClip "firebutton" in Frame 37
on (press) {
if (this._currentframe == 2) {
if (_root.nailnum <= 4) {
_root.nailed++;
eval ("_root.nail" + _root.nailnum)._x = _root.gun._x;
eval ("_root.nail" + _root.nailnum)._y = _root.gun._y;
eval ("_root.nail" + _root.nailnum)._rotation = _root.gun.thegun._rotation;
eval ("_root.nail" + _root.nailnum).play();
_root.nailnum = _root.nailnum + 1;
_root.nums.gotoAndStop(_root.nums._currentframe + 1);
}
}
}
Instance of Symbol 556 MovieClip "turnbutton" in Frame 37
on (release) {
if (this._currentframe == 2) {
_root.gun.thegun._rotation = _root.gun.thegun._rotation - 90;
_root.gun.firecheck._rotation = _root.gun.firecheck._rotation - 90;
_root.checknail();
}
}
onClipEvent (load) {
_root.rotx = -36;
}
Instance of Symbol 560 MovieClip "turnbutton" in Frame 37
on (rollOver, dragOver) {
gotoAndStop (2);
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (release) {
gotoAndStop (2);
if (_root.goingdown == false) {
x = 0;
while (x <= (_root.chosen.length - 1)) {
eval ("_root." + _root.chosen[x]).gotoAndStop(1);
eval ("_root." + _root.chosen[x]).swapDepths(eval ("_root." + _root.chosen[x]).defaultd);
x++;
}
_root.chosen = new Array();
_root.cranedown++;
_root.notouch._x = 0;
_root.droptest.play();
_root.goingdown = true;
}
}
Instance of Symbol 566 MovieClip in Frame 37
on (rollOver) {
gotoAndStop (2);
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
x = 1;
while (x <= 4) {
eval ("_root.nail" + x)._rotation = 0;
eval ("_root.nail" + x)._x = 900;
eval ("_root.nail" + x).gotoAndPlay(1);
x++;
}
_root.completed2 = false;
_root.block1.connected = new Array("block1");
_root.block2.connected = new Array("block2");
_root.block3.connected = new Array("block3");
_root.block4.connected = new Array("block4");
_root.block5.connected = new Array("block5");
_root.block6.connected = new Array("block6");
_root.group1 = new Array();
_root.group2 = new Array();
_root.group3 = new Array();
_root.group4 = new Array();
_root.nailnum = 1;
_root.nums.gotoAndStop(1);
}
Instance of Symbol 570 MovieClip "block6" in Frame 37
onClipEvent (load) {
_x = 36;
_y = 72;
defaultd = 6;
connected = new Array(_name);
this.swapDepths(6);
}
on (press) {
_root.piecepress(_name);
}
Instance of Symbol 573 MovieClip "block3" in Frame 37
onClipEvent (load) {
_x = 144;
_y = 252;
defaultd = 3;
connected = new Array(_name);
this.swapDepths(3);
}
on (press) {
_root.piecepress(_name);
}
Instance of Symbol 576 MovieClip "block4" in Frame 37
onClipEvent (load) {
_x = 324;
_y = 72;
defaultd = 4;
connected = new Array(_name);
this.swapDepths(4);
}
on (press) {
_root.piecepress(_name);
}
Instance of Symbol 579 MovieClip "block1" in Frame 37
onClipEvent (load) {
_x = 144;
_y = 324;
defaultd = 1;
connected = new Array(_name);
this.swapDepths(1);
}
on (press) {
_root.piecepress(_name);
}
Instance of Symbol 582 MovieClip "block2" in Frame 37
onClipEvent (load) {
_x = 360;
_y = 180;
defaultd = 2;
connected = new Array(_name);
this.swapDepths(2);
}
on (press) {
_root.piecepress(_name);
}
Instance of Symbol 585 MovieClip "block5" in Frame 37
onClipEvent (load) {
_x = 180;
_y = 108;
defaultd = 5;
connected = new Array(_name);
this.swapDepths(5);
}
on (press) {
_root.piecepress(_name);
}
Instance of Symbol 589 MovieClip "crane" in Frame 37
onClipEvent (load) {
this.swapDepths(600);
}
Instance of Symbol 598 MovieClip "droptest" in Frame 37
onClipEvent (load) {
this._y = Math.round(this._y);
}
Instance of Symbol 190 MovieClip in Frame 37
on (release) {
stopAllSounds();
_root.crane.removeMovieClip();
_root.gun.removeMovieClip();
x = 1;
while (x <= 6) {
eval ("_root.block" + x).removeMovieClip();
x++;
}
_root.gotoAndStop(2);
}
Instance of Symbol 601 MovieClip "helpdesk" in Frame 37
on (press) {
gotoAndPlay (280);
}
onClipEvent (load) {
this.swapDepths(500);
this.useHandCursor = false;
}
Instance of Symbol 192 MovieClip in Frame 37
onClipEvent (enterFrame) {
_root.seconds = _root.seconds + ((getTimer() - _root.timebegin) / 1000);
_root.timebegin = getTimer();
_root.locSO.data.timer = _root.seconds;
}
Frame 40
function faderings() {
x = 1;
while (x <= 5) {
eval ("_root.circle" + x)._alpha = 12;
x++;
}
_root.twoall._visible = false;
}
function unfaderings() {
x = 1;
while (x <= 5) {
eval ("_root.circle" + x)._alpha = 100;
x++;
}
_root.bars.gotoAndStop(1);
}
function check2() {
alldone = true;
x = 1;
while (x <= 5) {
if ((eval ("_root.circle" + x)._x != eval ("_root.circle" + x).destinationX) || (eval ("_root.circle" + x)._y != eval ("_root.circle" + x).destinationY)) {
alldone = false;
}
x++;
}
if (alldone == true) {
if (_root.circle1.hit.hitTest(_root.twoall.sevenbar1.hit1)) {
if (_root.circle2.hit.hitTest(_root.twoall.sevenbar1.hit2)) {
if (_root.circle3.hit.hitTest(_root.twoall.two2.sevenbar2.hit3)) {
if (_root.circle4.hit.hitTest(_root.twoall.two2.two3.sevenbar3.hit4)) {
if (_root.circle5.hit.hitTest(_root.twoall.two2.two3.two4.sevenbar4.hit5)) {
_root.lockout.gotoAndStop(3);
_root.goarrow._visible = true;
}
}
}
}
}
}
}
stop();
_root.timercount = 0;
turnoffrings();
_root.lock1.onChanged = function () {
if (_root.lock1.text == "7") {
_root.lock1.selectable = false;
_root.lockout1.gotoAndStop(1);
_root.count.gotoAndStop(1);
_root.machine.gotoAndStop(1);
_root.turnoffrings();
_root.gotoAndStop(5);
num = random(9) + 1;
while (num == _root.machine.gage._currentframe) {
num = random(9) + 1;
}
_root.machine.gage.gotoAndStop(num);
}
};
_root.lock2.onChanged = function () {
if (_root.lock2.text == "2") {
_root.gotoAndStop(8);
}
};
Instance of Symbol 609 MovieClip "lockout" in Frame 40
onClipEvent (load) {
_root.goarrow._visible = false;
}
on (press) {
if (_currentframe == 1) {
gotoAndStop (2);
}
}
on (release) {
if (_currentframe == 2) {
gotoAndStop (1);
}
}
Instance of Symbol 613 MovieClip "high" in Frame 40
onClipEvent (load) {
_root.ringx = 0;
_root.ringnum = 0;
_root.ringy = 0;
_root.turnon = false;
left = 0;
top = 0;
right = 0;
bottom = 0;
Xmax = 537.5;
Ymax = 387.5;
}
on (release) {
_root.turnon = false;
startDrag (eval ("_root.circle" + _root.ringnum), true, left, top, right, bottom);
_root.twoall._visible = false;
if (_root.finalX > 275) {
_root.xmax = _root.finalX - 12.5;
} else {
_root.xmax = 537.5 - _root.finalX;
}
if (_root.finalY > 200) {
_root.ymax = _root.finalY;
} else {
_root.ymax = 400 - _root.finalY;
}
_root.bars.gotoAndPlay(2);
_root.dragging = true;
}
onClipEvent (enterFrame) {
if (_root.turnon == true) {
if (_root._xmouse > _root.ringx) {
if (_root._ymouse < _root.ringy) {
this._rotation = -90;
_x = (_root.ringx - 12.5);
_y = (_root.ringy + 12.5);
left = _root.ringx;
top = 12.5;
right = Xmax;
bottom = _root.ringy;
} else {
this._rotation = 0;
_x = (_root.ringx - 12.5);
_y = (_root.ringy - 12.5);
left = _root.ringx;
top = _root.ringy;
right = Xmax;
bottom = Ymax;
}
} else if (_root._ymouse < _root.ringy) {
this._rotation = 180;
_y = (_root.ringy + 12.5);
_x = (_root.ringx + 12.5);
left = 12.5;
top = 12.5;
right = _root.ringx;
bottom = _root.ringy;
} else {
this._rotation = 90;
_y = (_root.ringy - 12.5);
_x = (_root.ringx + 12.5);
left = 12.5;
top = _root.ringy;
right = _root.ringx;
bottom = Ymax;
}
}
}
Instance of Symbol 616 MovieClip "circle5" in Frame 40
onClipEvent (load) {
_root.dragging = false;
destinationX = 364;
destinationY = 305;
}
on (release, releaseOutside) {
if (_currentframe == 1) {
if ((_root.dragging == false) && (_root.turnon == false)) {
_root.faderings();
_alpha = 100;
_root.finalX = destinationX;
_root.finalY = destinationY;
_root.high._x = _x;
_root.high._y = _y;
_root.ringx = _x;
_root.ringy = _y;
_root.ringnum = 5;
_root.turnon = true;
} else if (_root.turnon == false) {
stopDrag();
Mouse.show();
_root.twoall._visible = true;
if ((_root.bars.top._yscale <= 2.5) && (_root.bars.bottom._yscale <= 2.5)) {
this.gotoAndStop(2);
_x = destinationX;
_y = destinationY;
}
_root.bars._x = 600;
_root.unfaderings();
_root.high._rotation = 0;
_root.high._x = 560;
_root.high._y = -5;
_root.dragging = false;
}
}
}
Instance of Symbol 616 MovieClip "circle4" in Frame 40
onClipEvent (load) {
_root.dragging = false;
destinationX = 189;
destinationY = 295;
}
on (release, releaseOutside) {
if (_currentframe == 1) {
if ((_root.dragging == false) && (_root.turnon == false)) {
_root.faderings();
_alpha = 100;
_root.finalX = destinationX;
_root.finalY = destinationY;
_root.high._x = _x;
_root.high._y = _y;
_root.ringx = _x;
_root.ringy = _y;
_root.ringnum = 4;
_root.turnon = true;
} else if (_root.turnon == false) {
stopDrag();
Mouse.show();
_root.twoall._visible = true;
if ((_root.bars.top._yscale <= 2.5) && (_root.bars.bottom._yscale <= 2.5)) {
_x = destinationX;
_y = destinationY;
this.gotoAndStop(2);
}
_root.bars._x = 600;
_root.unfaderings();
_root.high._rotation = 0;
_root.high._x = 560;
_root.high._y = -5;
_root.dragging = false;
}
}
}
Instance of Symbol 616 MovieClip "circle3" in Frame 40
onClipEvent (load) {
_root.dragging = false;
destinationX = 343;
destinationY = 155;
}
on (release, releaseOutside) {
if (_currentframe == 1) {
if ((_root.dragging == false) && (_root.turnon == false)) {
_root.faderings();
_alpha = 100;
_root.finalX = destinationX;
_root.finalY = destinationY;
_root.high._x = _x;
_root.high._y = _y;
_root.ringx = _x;
_root.ringy = _y;
_root.ringnum = 3;
_root.turnon = true;
} else if (_root.turnon == false) {
stopDrag();
Mouse.show();
_root.twoall._visible = true;
if ((_root.bars.top._yscale <= 2.5) && (_root.bars.bottom._yscale <= 2.5)) {
this.gotoAndStop(2);
_x = destinationX;
_y = destinationY;
}
_root.bars._x = 600;
_root.unfaderings();
_root.high._rotation = 0;
_root.high._x = 560;
_root.high._y = -5;
_root.dragging = false;
}
}
}
Instance of Symbol 616 MovieClip "circle2" in Frame 40
onClipEvent (load) {
_root.dragging = false;
destinationX = 277;
destinationY = 69;
}
on (release, releaseOutside) {
if (_currentframe == 1) {
if ((_root.dragging == false) && (_root.turnon == false)) {
_root.faderings();
_alpha = 100;
_root.finalX = destinationX;
_root.finalY = destinationY;
_root.high._x = _x;
_root.high._y = _y;
_root.ringx = _x;
_root.ringy = _y;
_root.ringnum = 2;
_root.turnon = true;
} else if (_root.turnon == false) {
stopDrag();
Mouse.show();
_root.twoall._visible = true;
if ((_root.bars.top._yscale <= 2.5) && (_root.bars.bottom._yscale <= 2.5)) {
this.gotoAndStop(2);
_x = destinationX;
_y = destinationY;
}
_root.bars._x = 600;
_root.unfaderings();
_root.high._rotation = 0;
_root.high._x = 560;
_root.high._y = -5;
_root.dragging = false;
}
}
}
Instance of Symbol 616 MovieClip "circle1" in Frame 40
onClipEvent (load) {
_root.dragging = false;
destinationX = 171;
destinationY = 117;
}
on (release, releaseOutside) {
if (_currentframe == 1) {
if ((_root.dragging == false) && (_root.turnon == false)) {
_root.faderings();
_alpha = 100;
_root.finalX = destinationX;
_root.finalY = destinationY;
_root.high._x = _x;
_root.high._y = _y;
_root.ringx = _x;
_root.ringy = _y;
_root.ringnum = 1;
_root.turnon = true;
} else if (_root.turnon == false) {
stopDrag();
Mouse.show();
_root.twoall._visible = true;
if ((_root.bars.top._yscale <= 2.5) && (_root.bars.bottom._yscale <= 2.5)) {
this.gotoAndStop(2);
_x = destinationX;
_y = destinationY;
}
_root.bars._x = 600;
_root.unfaderings();
_root.high._rotation = 0;
_root.high._x = 560;
_root.high._y = -5;
_root.dragging = false;
}
}
}
Instance of Symbol 620 MovieClip "bars" in Frame 40
onClipEvent (load) {
_root.finalX = 0;
_root.finalY = 0;
_root.xmax = 0;
_root.ymax = 0;
}
Instance of Symbol 190 MovieClip in Frame 40
on (release) {
stopAllSounds();
_root.gotoAndStop(2);
}
Instance of Symbol 192 MovieClip in Frame 40
onClipEvent (enterFrame) {
_root.seconds = _root.seconds + ((getTimer() - _root.timebegin) / 1000);
_root.timebegin = getTimer();
_root.locSO.data.timer = _root.seconds;
}
Frame 45
firsttime = getTimer();
greenarrow = function () {
if (_root.connectioncount == 6) {
_root.arrow.locked = false;
trace("YAHAA");
_root.arrow._alpha = 100;
}
};
checkconnection = function () {
thepath = String(("_root.logpiece" + _root.sentlog) + ".hit");
if (eval (thepath).hitTest(_root.platform1.land1) && (eval (thepath).hitTest(_root.platform2.land2))) {
trace("conntection 1 made");
_root.platform2.locked = true;
_root.platform2.land2._y = -500;
eval ("_root.logpiece" + _root.sentlog).gotoAndStop(32);
_root.connectioncount++;
}
if (eval (thepath).hitTest(_root.platform2.land1) && (eval (thepath).hitTest(_root.platform3.land2))) {
trace("conntection 2 made");
_root.platform2.locked = true;
_root.platform3.locked = true;
_root.platform2.land1._y = -500;
eval ("_root.logpiece" + _root.sentlog).gotoAndStop(32);
_root.connectioncount++;
}
if (eval (thepath).hitTest(_root.platform3.land1) && (eval (thepath).hitTest(_root.platform4.land1))) {
trace("conntection 3 made");
_root.platform4.locked = true;
_root.platform3.locked = true;
_root.platform3.land1._xscale = 0;
_root.platform4.land1._xscale = 0;
_root.platform3.land1._yscale = 0;
_root.platform4.land1._yscale = 0;
eval ("_root.logpiece" + _root.sentlog).gotoAndStop(32);
_root.connectioncount++;
}
if (eval (thepath).hitTest(_root.platform4.land2) && (eval (thepath).hitTest(_root.platform5.land1))) {
trace("conntection 4 made");
_root.platform4.locked = true;
_root.platform5.locked = true;
_root.platform4.land2._xscale = 0;
_root.platform5.land1._xscale = 0;
_root.platform4.land2._yscale = 0;
_root.platform5.land1._yscale = 0;
eval ("_root.logpiece" + _root.sentlog).gotoAndStop(32);
_root.connectioncount++;
}
if (eval (thepath).hitTest(_root.platform5.land2) && (eval (thepath).hitTest(_root.platform6.land1))) {
trace("conntection 5 made");
_root.platform5.locked = true;
_root.platform6.locked = true;
_root.platform5.land2._xscale = 0;
_root.platform6.land1._xscale = 0;
_root.platform5.land2._yscale = 0;
_root.platform6.land1._yscale = 0;
eval ("_root.logpiece" + _root.sentlog).gotoAndStop(32);
_root.connectioncount++;
}
if (eval (thepath).hitTest(_root.platform6.land2) && (eval (thepath).hitTest(_root.platform7.land1))) {
trace("conntection 6 made");
_root.platform6.locked = true;
_root.platform6.land2._xscale = 0;
_root.platform7.land1._xscale = 0;
_root.platform6.land2._yscale = 0;
_root.platform7.land1._yscale = 0;
eval ("_root.logpiece" + _root.sentlog).gotoAndStop(32);
_root.connectioncount++;
}
greenarrow();
_root.sentlog = 0;
};
checkall = function () {
x = 0;
while (x <= 6) {
_root.sentlog = x;
hitting = false;
x = 1;
while (x <= 7) {
if (eval ("_root.logpiece" + x).hitTest(eval ("_root.platform" + x))) {
y = 1;
while (y <= 2) {
if (eval ("_root.logpiece" + x).hitTest(eval ((("_root.platform" + x) + ".land") + y))) {
i = 1;
while (i < 6) {
if (eval ("_root.logpiece" + x).hitTest(eval ((("_root.platform" + x) + ".hit") + i))) {
hitting = true;
eval ("_root.platform" + x).warn.play();
}
i++;
}
}
y++;
}
}
x++;
}
if (hitting == false) {
checkconnection();
}
x++;
}
};
Instance of Symbol 653 MovieClip "platform3" in Frame 45
onClipEvent (load) {
locked = false;
}
on (press) {
if ((!locked) && (!_root.sawing)) {
Ypos = _root._ymouse;
gotoAndStop (2);
_root.turner.down = true;
_root.turner._visible = true;
Mouse.hide();
}
}
on (release, releaseOutside) {
gotoAndStop (1);
_root.turner._visible = false;
_root.turner._y = 600;
_root.turner.down = false;
Mouse.show();
rot = this._rotation;
if ((rot > -45) && (rot < 45)) {
this._rotation = 0;
}
if ((rot > 45) && (rot < 135)) {
this._rotation = 90;
}
if (((rot > 135) && (rot <= 180)) || ((rot < -135) && (rot >= -180))) {
this._rotation = 180;
}
if ((rot > -135) && (rot < -45)) {
this._rotation = -90;
}
}
Instance of Symbol 653 MovieClip "platform2" in Frame 45
onClipEvent (load) {
locked = false;
}
on (press) {
if ((!locked) && (!_root.sawing)) {
Ypos = _root._ymouse;
gotoAndStop (2);
_root.turner.down = true;
_root.turner._visible = true;
Mouse.hide();
}
}
on (release, releaseOutside) {
gotoAndStop (1);
_root.turner._visible = false;
_root.turner._y = 600;
_root.turner.down = false;
Mouse.show();
rot = this._rotation;
if ((rot > -45) && (rot < 45)) {
this._rotation = 0;
}
if ((rot > 45) && (rot < 135)) {
this._rotation = 90;
}
if (((rot > 135) && (rot <= 180)) || ((rot < -135) && (rot >= -180))) {
this._rotation = 180;
}
if ((rot > -135) && (rot < -45)) {
this._rotation = -90;
}
}
Instance of Symbol 653 MovieClip "platform4" in Frame 45
onClipEvent (load) {
locked = false;
}
on (press) {
if ((!locked) && (!_root.sawing)) {
Ypos = _root._ymouse;
gotoAndStop (2);
_root.turner.down = true;
_root.turner._visible = true;
Mouse.hide();
}
}
on (release, releaseOutside) {
gotoAndStop (1);
_root.turner._visible = false;
_root.turner._y = 600;
_root.turner.down = false;
Mouse.show();
rot = this._rotation;
if ((rot > -45) && (rot < 45)) {
this._rotation = 0;
}
if ((rot > 45) && (rot < 135)) {
this._rotation = 90;
}
if (((rot > 135) && (rot <= 180)) || ((rot < -135) && (rot >= -180))) {
this._rotation = 180;
}
if ((rot > -135) && (rot < -45)) {
this._rotation = -90;
}
}
Instance of Symbol 653 MovieClip "platform5" in Frame 45
onClipEvent (load) {
locked = false;
}
on (press) {
if ((!locked) && (!_root.sawing)) {
Ypos = _root._ymouse;
gotoAndStop (2);
_root.turner.down = true;
_root.turner._visible = true;
Mouse.hide();
}
}
on (release, releaseOutside) {
gotoAndStop (1);
_root.turner._visible = false;
_root.turner._y = 600;
_root.turner.down = false;
Mouse.show();
rot = this._rotation;
if ((rot > -45) && (rot < 45)) {
this._rotation = 0;
}
if ((rot > 45) && (rot < 135)) {
this._rotation = 90;
}
if (((rot > 135) && (rot <= 180)) || ((rot < -135) && (rot >= -180))) {
this._rotation = 180;
}
if ((rot > -135) && (rot < -45)) {
this._rotation = -90;
}
}
Instance of Symbol 653 MovieClip "platform6" in Frame 45
onClipEvent (load) {
locked = false;
}
on (press) {
if ((!locked) && (!_root.sawing)) {
Ypos = _root._ymouse;
gotoAndStop (2);
_root.turner.down = true;
_root.turner._visible = true;
Mouse.hide();
}
}
on (release, releaseOutside) {
gotoAndStop (1);
_root.turner._visible = false;
_root.turner._y = 600;
_root.turner.down = false;
Mouse.show();
rot = this._rotation;
if ((rot > -45) && (rot < 45)) {
this._rotation = 0;
}
if ((rot > 45) && (rot < 135)) {
this._rotation = 90;
}
if (((rot > 135) && (rot <= 180)) || ((rot < -135) && (rot >= -180))) {
this._rotation = 180;
}
if ((rot > -135) && (rot < -45)) {
this._rotation = -90;
}
}
Instance of Symbol 666 MovieClip "arrow" in Frame 45
onClipEvent (load) {
locked = true;
_root.connectioncount = 0;
}
on (press) {
if (locked == false) {
_root.logpiece1.removeMovieClip();
_root.logpiece2.removeMovieClip();
_root.logpiece3.removeMovieClip();
_root.logpiece4.removeMovieClip();
_root.logpiece5.removeMovieClip();
_root.logpiece6.removeMovieClip();
_root.half1.removeMovieClip();
_root.half2.removeMovieClip();
_root.discount.removeMovieClip();
_root.saw.removeMovieClip();
_root.thelog.removeMovieClip();
_root.completed[7] = 1;
_root.updateshared();
_root.gotoAndStop(2);
}
}
Instance of Symbol 668 MovieClip "turner" in Frame 45
onClipEvent (load) {
_visible = false;
_root.showCCdown = false;
speed = 35;
}
onClipEvent (enterFrame) {
if (down == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
Instance of Symbol 675 MovieClip "thelog" in Frame 45
onClipEvent (load) {
this.swapDepths(98);
}
Instance of Symbol 680 MovieClip in Frame 45
onClipEvent (load) {
_visible = false;
_root.logcount = 6;
_root.depthcount = 1;
}
Instance of Symbol 690 MovieClip "saw" in Frame 45
onClipEvent (load) {
_x = 98;
_root.sawing = false;
this.swapDepths(99);
firstY = _y;
_root.right = _x;
}
Instance of Symbol 693 MovieClip "hitter" in Frame 45
onClipEvent (load) {
firstX = _x;
_x = 600;
}
Instance of Symbol 695 MovieClip "half1" in Frame 45
onClipEvent (load) {
this.swapDepths(101);
}
onClipEvent (enterFrame) {
_rotation = (Math.atan2(_y - _root.half2._y, _x - _root.half2._x) / (Math.PI/180));
}
on (press) {
_root.meterdown = true;
this.startDrag(false, 5, 5, 545, 395);
}
on (release, releaseOutside) {
_root.meterdown = false;
this.stopDrag();
}
Instance of Symbol 695 MovieClip "half2" in Frame 45
onClipEvent (load) {
_root.meterdown = false;
this.swapDepths(100);
}
onClipEvent (enterFrame) {
this._rotation = Math.atan2(_y - _root.half1._y, _x - _root.half1._x) / (Math.PI/180);
}
on (press) {
_root.meterdown = true;
this.startDrag(false, 5, 5, 545, 395);
}
on (release, releaseOutside) {
_root.meterdown = false;
this.stopDrag();
}
Instance of Symbol 698 MovieClip "discount" in Frame 45
onClipEvent (load) {
this.swapDepths(102);
}
onClipEvent (enterFrame) {
if (_root.meterdown == true) {
this._x = _root.half1._x - ((_root.half1._x - _root.half2._x) / 2);
this._y = _root.half1._y - ((_root.half1._y - _root.half2._y) / 2);
dis.text = Math.round(Math.sqrt(Math.pow(_root.half1._x - _root.half2._x, 2) + Math.pow(_root.half1._y - _root.half2._y, 2)));
} else {
dis.text = "";
_y = -100;
}
}
Instance of Symbol 190 MovieClip in Frame 45
on (release) {
stopAllSounds();
_root.logpiece1.removeMovieClip();
_root.logpiece2.removeMovieClip();
_root.logpiece3.removeMovieClip();
_root.logpiece4.removeMovieClip();
_root.logpiece5.removeMovieClip();
_root.logpiece6.removeMovieClip();
_root.half1.removeMovieClip();
_root.half2.removeMovieClip();
_root.saw.removeMovieClip();
_root.thelog.removeMovieClip();
_root.discount.removeMovieClip();
_root.gotoAndStop(2);
}
Instance of Symbol 192 MovieClip in Frame 45
onClipEvent (enterFrame) {
_root.seconds = _root.seconds + ((getTimer() - _root.timebegin) / 1000);
_root.timebegin = getTimer();
_root.locSO.data.timer = _root.seconds;
}
Frame 54
fullcheck = new eval (function () {
total = 0;
x = 0;
while (x < 31) {
if (_root.answerlist[x] != _root.thelist[x]) {
x = 31;
} else {
total++;
}
x++;
}
if (total == 31) {
trace("W00T");
} else {
trace("total: " + total);
}
})();
Instance of Symbol 707 MovieClip in Frame 54
onClipEvent (load) {
col = 1;
}
Instance of Symbol 707 MovieClip in Frame 54
onClipEvent (load) {
col = 2;
}
Instance of Symbol 707 MovieClip in Frame 54
onClipEvent (load) {
col = 3;
}
Instance of Symbol 707 MovieClip in Frame 54
onClipEvent (load) {
col = 4;
}
Instance of Symbol 707 MovieClip in Frame 54
onClipEvent (load) {
col = 5;
}
Instance of Symbol 707 MovieClip in Frame 54
onClipEvent (load) {
col = 6;
}
Instance of Symbol 707 MovieClip in Frame 54
onClipEvent (load) {
col = 7;
}
Instance of Symbol 713 MovieClip "option" in Frame 54
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 718 MovieClip "bar" in Frame 54
onClipEvent (load) {
top = _y;
bottom = _y + 303;
sided = _x;
down = false;
}
on (press) {
this.startDrag(false, sided, top, sided, bottom);
down = true;
}
on (release, releaseOutside) {
this.stopDrag();
down = false;
x = 1;
while (x <= 7) {
if (this.hitTest(eval ("_root.plate" + x))) {
this._y = (top - 1) + eval (("_root.plate" + x) + ".myframe");
_root.alltiles.gotoAndStop(eval (("_root.plate" + x) + ".myframe"));
}
x++;
}
}
onClipEvent (enterFrame) {
if (down) {
_root.alltiles.gotoAndStop(Math.round(_y - top));
}
}
Instance of Symbol 719 MovieClip "plate2" in Frame 54
onClipEvent (load) {
myframe = 51;
}
Instance of Symbol 719 MovieClip "plate3" in Frame 54
onClipEvent (load) {
myframe = 101;
}
Instance of Symbol 719 MovieClip "plate4" in Frame 54
onClipEvent (load) {
myframe = 151;
}
Instance of Symbol 719 MovieClip "plate5" in Frame 54
onClipEvent (load) {
myframe = 201;
}
Instance of Symbol 719 MovieClip "plate6" in Frame 54
onClipEvent (load) {
myframe = 252;
}
Instance of Symbol 719 MovieClip "plate7" in Frame 54
onClipEvent (load) {
myframe = 302;
}
Instance of Symbol 719 MovieClip "plate1" in Frame 54
onClipEvent (load) {
myframe = 1;
}
Instance of Symbol 722 MovieClip "caseing" in Frame 54
on (press) {
if (_currentframe == 1) {
this.startDrag(false, 456.5, 225.5, 519, 225.5);
}
}
on (release, releaseOutside) {
this.stopDrag();
if (_x < 475) {
_x = 456.5;
_root.option.gotoAndStop(3);
} else if (_x > 500) {
_x = 519;
_root.bar._y = _root.bar.top;
_root.alltiles.gotoAndStop(1);
_root.option.gotoAndStop(2);
} else {
_root.option.gotoAndStop(4);
}
}
Instance of Symbol 737 MovieClip "alltiles" in Frame 54
onClipEvent (load) {
_root.chosen = 1;
_root.answerlist = new Array(2, 5, 3, 7, 6, 1, 3, 4, 3, 5, 2, 4, 4, 3, 1, 6, 7, 2, 6, 2, 4, 2, 5, 3, 2, 4, 2, 6, 6, 1, 3);
_root.thelist = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.thelist[3] = 7;
_root.thelist[8] = 3;
_root.thelist[12] = 4;
_root.thelist[15] = 6;
_root.thelist[17] = 2;
_root.thelist[22] = 5;
_root.thelist[27] = 6;
_root.thelist[29] = 1;
_root.thelist[30] = 3;
}
Instance of Symbol 738 MovieClip "stoptouch" in Frame 54
onClipEvent (load) {
_visible = false;
}
on (press) {
}
Instance of Symbol 190 MovieClip in Frame 54
on (release) {
stopAllSounds();
_root.gotoAndStop(2);
}
Instance of Symbol 192 MovieClip in Frame 54
onClipEvent (enterFrame) {
_root.seconds = _root.seconds + ((getTimer() - _root.timebegin) / 1000);
_root.timebegin = getTimer();
_root.locSO.data.timer = _root.seconds;
}
Frame 60
depthswap = new eval (function () {
trace("in function");
firstdepth = _root.eval("_root." + _root.first).getDepth();
seconddepth = _root.eval("_root." + _root.second).getDepth();
trace(firstdepth);
trace(seconddepth);
eval ("_root.p" + _root.first).swapDepths(firstdepth);
eval ("_root.p" + _root.second).swapDepths(seconddepth);
eval ("_root." + _root.first).swapDepths(seconddepth);
eval ("_root." + _root.second).swapDepths(firstdepth);
eval ("_root." + _root.first)._y = 55 + (52.35 * Math.abs(firstdepth - 10));
eval ("_root." + _root.second)._y = 55 + (52.35 * Math.abs(seconddepth - 10));
})();
Instance of Symbol 744 MovieClip "arrowit" in Frame 60
onClipEvent (load) {
setx = 500;
sety = 176;
answer = new Array("pblue", "porange", "pred", "pgreen", "ppurple", "pyellow");
}
on (press) {
papers = new Array("pgreen", "porange", "pred", "pblue", "pyellow", "ppurple");
pd = new Array(_root.pgreen.getDepth(), _root.porange.getDepth(), _root.pred.getDepth(), _root.pblue.getDepth(), _root.pyellow.getDepth(), _root.ppurple.getDepth());
temp = new Array(6);
lookingfor = 1;
y = 0;
while (y < 6) {
x = 0;
while (x < 6) {
if (pd[x] == lookingfor) {
temp[lookingfor - 1] = papers[x];
x = 6;
}
x++;
}
lookingfor++;
y++;
}
count = 0;
gotoAndPlay (2);
}
Instance of Symbol 746 MovieClip "pblue" in Frame 60
onClipEvent (load) {
this.swapDepths(3);
myx = _x;
myy = _y;
}
on (press) {
this.startDrag(false, 82, 58, 508, 309);
}
on (release, releaseOutside) {
this.stopDrag();
myx = _x;
myy = _y;
}
Instance of Symbol 748 MovieClip "pgreen" in Frame 60
onClipEvent (load) {
this.swapDepths(6);
myx = _x;
myy = _y;
}
on (press) {
this.startDrag(false, 82, 58, 508, 309);
}
on (release, releaseOutside) {
this.stopDrag();
myx = _x;
myy = _y;
}
Instance of Symbol 750 MovieClip "pred" in Frame 60
onClipEvent (load) {
this.swapDepths(5);
myx = _x;
myy = _y;
}
on (press) {
this.startDrag(false, 82, 58, 508, 309);
}
on (release, releaseOutside) {
this.stopDrag();
myx = _x;
myy = _y;
}
Instance of Symbol 752 MovieClip "pyellow" in Frame 60
onClipEvent (load) {
myx = _x;
myy = _y;
this.swapDepths(2);
}
on (press) {
this.startDrag(false, 82, 58, 508, 309);
}
on (release, releaseOutside) {
this.stopDrag();
myx = _x;
myy = _y;
}
Instance of Symbol 754 MovieClip "ppurple" in Frame 60
onClipEvent (load) {
this.swapDepths(1);
myx = _x;
myy = _y;
}
on (press) {
this.startDrag(false, 82, 58, 508, 309);
}
on (release, releaseOutside) {
this.stopDrag();
myx = _x;
myy = _y;
}
Instance of Symbol 756 MovieClip "porange" in Frame 60
onClipEvent (load) {
this.swapDepths(4);
myx = _x;
myy = _y;
}
on (press) {
this.startDrag(false, 82, 58, 508, 309);
}
on (release, releaseOutside) {
this.stopDrag();
myx = _x;
myy = _y;
}
Instance of Symbol 762 MovieClip "circle" in Frame 60
on (press) {
if (_root.playingsounds == false) {
if (_root.white._visible == false) {
_y = (_y - 6);
_root.tilename = "circle";
_root.white._visible = true;
_root.white.startDrag(true, 49, _root.white._y, 541, _root.white._y);
} else {
_y = (_y + 6);
_root.white._visible = false;
_root.white.stopDrag();
_root.white._x = -200;
}
}
}
Instance of Symbol 765 MovieClip "triangle" in Frame 60
on (press) {
if (_root.playingsounds == false) {
if (_root.white._visible == false) {
_y = (_y - 6);
_root.tilename = "triangle";
_root.white._visible = true;
_root.white.startDrag(true, 49, _root.white._y, 541, _root.white._y);
} else {
_y = (_y + 6);
_root.white._visible = false;
_root.white.stopDrag();
_root.white._x = -200;
}
}
}
Instance of Symbol 767 MovieClip "square" in Frame 60
on (press) {
if (_root.playingsounds == false) {
if (_root.white._visible == false) {
_y = (_y - 6);
_root.tilename = "square";
_root.white._visible = true;
_root.white.startDrag(true, 49, _root.white._y, 541, _root.white._y);
} else {
_y = (_y + 6);
_root.white._visible = false;
_root.white.stopDrag();
_root.white._x = -200;
}
}
}
Instance of Symbol 770 MovieClip "star" in Frame 60
on (press) {
if (_root.playingsounds == false) {
if (_root.white._visible == false) {
_y = (_y - 6);
_root.tilename = "star";
_root.white._visible = true;
_root.white.startDrag(true, 49, _root.white._y, 541, _root.white._y);
} else {
_y = (_y + 6);
_root.white._visible = false;
_root.white.stopDrag();
_root.white._x = -200;
}
}
}
Instance of Symbol 772 MovieClip "xmark" in Frame 60
on (press) {
if (_root.playingsounds == false) {
if (_root.white._visible == false) {
_y = (_y - 6);
_root.tilename = "xmark";
_root.white._visible = true;
_root.white.startDrag(true, 49, _root.white._y, 541, _root.white._y);
} else {
_y = (_y + 6);
_root.white._visible = false;
_root.white.stopDrag();
_root.white._x = -200;
}
}
}
Instance of Symbol 775 MovieClip "halfcircle" in Frame 60
on (press) {
if (_root.playingsounds == false) {
if (_root.white._visible == false) {
_y = (_y - 6);
_root.tilename = "halfcircle";
_root.white._visible = true;
_root.white.startDrag(true, 49, _root.white._y, 541, _root.white._y);
} else {
_y = (_y + 6);
_root.white._visible = false;
_root.white.stopDrag();
_root.white._x = -200;
}
}
}
Instance of Symbol 780 MovieClip "dyplay" in Frame 60
on (press) {
if ((_currentframe == 1) && (_root.playingsounds2 == false)) {
_root.playingsounds = true;
_root.whichtile = 0;
_root.tileorder.push("stopper");
_root.currenttile = _root.tileorder[0];
eval ("_root." + _root.tileorder[0]).play();
eval ("_root." + _root.tileorder[0]).play();
_root.stopper._x = 84.9;
_root.stopper._visible = true;
gotoAndStop (2);
} else {
eval ("_root." + _root.currenttile).stopAllSounds();
eval ("_root." + _root.currenttile).gotoAndStop(1);
_root.playingsounds = false;
_root.stopper._visible = false;
gotoAndStop (1);
}
}
Instance of Symbol 782 MovieClip "stopper" in Frame 60
onClipEvent (load) {
_root.playingsounds = false;
_y = 383.75;
_x = 84.9;
_visible = false;
}
Instance of Symbol 787 MovieClip "white" in Frame 60
onClipEvent (load) {
_root.tileorder = new Array("triangle", "circle", "square", "xmark", "star", "halfcircle");
_root.starts = new Array(6.78, 0, 4.52, 11.3, 9.04, 2.26);
_root.stops = new Array(9040, 2260, 6780, 13558, 11300, 4520);
_visible = false;
_x = -200;
this.swapDepths(34);
}
on (press) {
_visible = false;
stopDrag();
eval ("_root." + _root.tilename)._y = eval ("_root." + _root.tilename)._y + 6;
_root.tile2 = "";
x = 0;
while (x < 6) {
if (hit.hitTest(eval ("_root." + _root.tileorder[x]))) {
_root.tile2 = _root.tileorder[x];
y = 0;
while (y < 6) {
if (_root.tileorder[y] == _root.tilename) {
index2 = y;
trace("index found: " + index2);
y = 6;
}
y++;
}
trace("index2: " + _root.tileorder[index2]);
_root.tileorder[x] = _root.tileorder[index2];
_root.tileorder[index2] = _root.tile2;
trace(_root.tileorder);
x = 6;
}
x++;
}
tempx = eval ("_root." + _root.tilename)._x;
tempx2 = eval ("_root." + _root.tile2)._x;
eval ("_root." + _root.tilename)._x = tempx2;
eval ("_root." + _root.tile2)._x = tempx;
_x = -200;
}
Instance of Symbol 789 MovieClip "light" in Frame 60
onClipEvent (load) {
_visible = false;
_root.swapping = false;
depthorder = new Array(6);
}
Instance of Symbol 793 MovieClip "i" in Frame 60
onClipEvent (load) {
music = new Sound();
thepos = 0;
_root.playingsounds2 = false;
music.attachSound("symphony");
}
Instance of Symbol 795 MovieClip "green" in Frame 60
onClipEvent (load) {
myname = "green";
}
on (press) {
if (_root.swapping == false) {
_root.light._y = _y;
_root.firstY = _y;
_root.swapping = true;
_root.first = myname;
_root.light._visible = true;
} else {
eval ("_root.p" + _root.first).swapDepths(eval ("_root.p" + myname));
_root.secondY = _y;
eval ("_root." + _root.first)._y = _root.secondY;
_y = _root.firstY;
_root.light._visible = false;
_root.swapping = false;
}
}
Instance of Symbol 797 MovieClip "red" in Frame 60
onClipEvent (load) {
myname = "red";
}
on (press) {
if (_root.swapping == false) {
_root.light._y = _y;
_root.firstY = _y;
_root.swapping = true;
_root.first = myname;
_root.light._visible = true;
} else {
eval ("_root.p" + _root.first).swapDepths(eval ("_root.p" + myname));
_root.secondY = _y;
eval ("_root." + _root.first)._y = _root.secondY;
_y = _root.firstY;
_root.light._visible = false;
_root.swapping = false;
}
}
Instance of Symbol 799 MovieClip "orange" in Frame 60
onClipEvent (load) {
myname = "orange";
}
on (press) {
if (_root.swapping == false) {
_root.light._y = _y;
_root.firstY = _y;
_root.swapping = true;
_root.first = myname;
_root.light._visible = true;
} else {
eval ("_root.p" + _root.first).swapDepths(eval ("_root.p" + myname));
_root.secondY = _y;
eval ("_root." + _root.first)._y = _root.secondY;
_y = _root.firstY;
_root.light._visible = false;
_root.swapping = false;
}
}
Instance of Symbol 801 MovieClip "blue" in Frame 60
onClipEvent (load) {
myname = "blue";
}
on (press) {
if (_root.swapping == false) {
_root.light._y = _y;
_root.firstY = _y;
_root.swapping = true;
_root.first = myname;
_root.light._visible = true;
} else {
eval ("_root.p" + _root.first).swapDepths(eval ("_root.p" + myname));
_root.secondY = _y;
eval ("_root." + _root.first)._y = _root.secondY;
_y = _root.firstY;
_root.light._visible = false;
_root.swapping = false;
}
}
Instance of Symbol 803 MovieClip "yellow" in Frame 60
onClipEvent (load) {
myname = "yellow";
}
on (press) {
if (_root.swapping == false) {
_root.light._y = _y;
_root.firstY = _y;
_root.swapping = true;
_root.first = myname;
_root.light._visible = true;
} else {
eval ("_root.p" + _root.first).swapDepths(eval ("_root.p" + myname));
_root.secondY = _y;
eval ("_root." + _root.first)._y = _root.secondY;
_y = _root.firstY;
_root.light._visible = false;
_root.swapping = false;
}
}
Instance of Symbol 805 MovieClip "purple" in Frame 60
onClipEvent (load) {
myname = "purple";
}
on (press) {
if (_root.swapping == false) {
_root.light._y = _y;
_root.firstY = _y;
_root.swapping = true;
_root.first = myname;
_root.light._visible = true;
} else {
eval ("_root.p" + _root.first).swapDepths(eval ("_root.p" + myname));
_root.secondY = _y;
eval ("_root." + _root.first)._y = _root.secondY;
_y = _root.firstY;
_root.light._visible = false;
_root.swapping = false;
}
}
Instance of Symbol 807 MovieClip "soundbar" in Frame 60
onClipEvent (load) {
_yscale = 0;
}
Instance of Symbol 190 MovieClip in Frame 60
on (release) {
stopAllSounds();
x = 0;
while (x < 6) {
eval ("_root." + _root.arrowit.answer[x]).removeMovieClip();
x++;
}
_root.gotoAndStop(2);
}
Instance of Symbol 192 MovieClip in Frame 60
onClipEvent (enterFrame) {
_root.seconds = _root.seconds + ((getTimer() - _root.timebegin) / 1000);
_root.timebegin = getTimer();
_root.locSO.data.timer = _root.seconds;
}
Symbol 20 MovieClip Frame 30
stop();
Symbol 23 MovieClip Frame 30
stop();
Symbol 28 MovieClip Frame 1
stop();
Instance of Symbol 27 MovieClip in Symbol 28 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.clickerdown) {
trace("clicker down!");
_parent._parent._rotation = (Math.atan2(_parent._parent._y - _root._ymouse, _parent._parent._x - _root._xmouse) / (Math.PI/180)) - 90;
}
}
Symbol 31 MovieClip [logpiece] Frame 1
bottommask._yscale = ((380 - _root.sawY) / 300) * 100;
bottomline._y = bottommask._y - bottommask._height;
theflash._yscale = bottommask._yscale;
hit._yscale = bottommask._yscale;
trace(sendablelog);
P1 = 0;
L1 = 0;
P2 = 0;
L2 = 0;
_x = 24;
_y = 384;
Instance of Symbol 13 MovieClip "hit" in Symbol 31 MovieClip [logpiece] Frame 1
on (press) {
_parent.startDrag(false, 15, 20, 540, 400);
_parent._alpha = 30;
}
on (release, releaseOutside) {
_parent._alpha = 100;
_parent.stopDrag();
}
onClipEvent (enterFrame) {
if (_parent._x >= 136) {
_parent.stopDrag();
_parent.startDrag(false, 136, 10, 540, 390);
_parent.gotoAndStop(31);
_root.thelog.gotoAndStop(1);
}
}
Instance of Symbol 20 MovieClip "del" in Symbol 31 MovieClip [logpiece] Frame 1
onClipEvent (load) {
_y = (_parent.bottommask._y - (_parent.bottommask._height / 2));
}
Symbol 31 MovieClip [logpiece] Frame 30
stop();
Symbol 31 MovieClip [logpiece] Frame 31
this.setMask(_root.field);
hit._yscale = bottommask._yscale;
_root.saw.play();
Instance of Symbol 13 MovieClip "hit" in Symbol 31 MovieClip [logpiece] Frame 31
on (press) {
_parent.startDrag(false, 136, 10, 540, 390);
_parent._alpha = 30;
}
on (release, releaseOutside) {
_parent.stopDrag();
landcount = 0;
hitting = false;
x = 1;
while (x <= 7) {
if (this.hitTest(eval ("_root.platform" + x))) {
y = 1;
while (y <= 2) {
if (this.hitTest(eval ((("_root.platform" + x) + ".land") + y))) {
landcount++;
i = 1;
while (i < 6) {
if (this.hitTest(eval ((("_root.platform" + x) + ".hit") + i))) {
hitting = true;
eval ("_root.platform" + x).warn.play();
}
i++;
}
}
y++;
}
}
x++;
}
if (hitting == true) {
_parent._alpha = 30;
} else {
_parent._alpha = 100;
if (landcount == 2) {
_root.sentlog = _parent.sendablelog;
_root.checkconnection();
}
}
}
Instance of Symbol 20 MovieClip "del" in Symbol 31 MovieClip [logpiece] Frame 31
onClipEvent (load) {
_y = (_parent.bottommask._y - (_parent.bottommask._height / 2));
}
on (release) {
_root.logcount++;
_parent.removeMovieClip();
}
Instance of Symbol 28 MovieClip "rotator" in Symbol 31 MovieClip [logpiece] Frame 31
onClipEvent (load) {
_root.clickerdown = false;
_y = (_parent.bottommask._y - _parent.bottommask._height);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release, releaseOutside) {
gotoAndStop (1);
_root.clickerdown = false;
}
on (press) {
_root.clickerdown = true;
_parent.hit.stopDrag();
gotoAndStop (2);
}
Symbol 31 MovieClip [logpiece] Frame 32
greenlight._yscale = bottommask._yscale;
Instance of Symbol 39 MovieClip in Symbol 50 MovieClip Frame 317
on (release) {
getURL ("http://www.newgrounds.com");
}
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 1163
on (release) {
_root.gotoAndStop(2);
}
Symbol 50 MovieClip Frame 1171
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
_root.thepuz1._visible = true;
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
_root.thepuz2._visible = true;
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
_root.thepuz3._visible = true;
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 2
_root.thepuz4._visible = true;
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
_root.thepuz5._visible = true;
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
_root.thepuz10._visible = true;
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
_root.thepuz9._visible = true;
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
_root.thepuz8._visible = true;
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 2
_root.thepuz7._visible = true;
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
_root.thepuz6._visible = true;
Symbol 75 MovieClip Frame 2
trace("puz1 frame 2");
Symbol 111 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 1
stop();
Instance of Symbol 119 MovieClip in Symbol 120 MovieClip Frame 1
onClipEvent (load) {
frames = new Array(12, 20, 25, 31, 34, 37, 40, 45, 54, 60, 66);
lookingfor = 0;
}
onClipEvent (enterFrame) {
if (((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) == 100) {
i = 0;
while (i < 11) {
eval ("_root.ld" + (i + 1)).gotoAndStop(2);
eval ("_root.thepuz" + (i + 1))._visible = true;
i++;
}
} else if (lookingfor < 10) {
if (_root._framesloaded >= frames[lookingfor]) {
i = 0;
while (i <= lookingfor) {
eval ("_root.ld" + (i + 1)).gotoAndStop(2);
eval ("_root.thepuz" + (i + 1))._visible = true;
i++;
}
_root.colorpieces();
lookingfor++;
}
} else {
i = 0;
while (i < 11) {
eval ("_root.ld" + (i + 1)).gotoAndStop(2);
eval ("_root.thepuz" + (i + 1))._visible = true;
i++;
}
_root.showtime();
_parent.gotoAndStop(2);
}
}
Symbol 123 MovieClip Frame 18
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 135 Button
on (release) {
if (_root.inputer.text == "870901") {
_root.completed[0] = 1;
trace("Completed: " + _root.completed);
_root.updateshared();
_root.gotoAndStop(2);
}
}
Symbol 158 Button
on (press) {
if (_root.square.moveme == false) {
_root.showlines();
_root.way2 = -2;
_root.movevert = true;
}
}
on (release, releaseOutside) {
_root.movevert = false;
}
Symbol 159 Button
on (press) {
if (_root.square.moveme == false) {
_root.showlines();
_root.way = 2;
_root.moveside = true;
}
}
on (release, releaseOutside) {
_root.moveside = false;
}
Symbol 160 Button
on (press) {
if (_root.square.moveme == false) {
_root.showlines();
_root.way2 = 2;
_root.movevert = true;
}
}
on (release, releaseOutside) {
_root.movevert = false;
}
Symbol 161 Button
on (press) {
if (_root.square.moveme == false) {
_root.showlines();
_root.way = -2;
_root.moveside = true;
}
}
on (release, releaseOutside) {
_root.moveside = false;
}
Symbol 164 Button
on (release) {
_root.hidelines();
_root.square.moveme = true;
}
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 30
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 30
_root.changeout = true;
stop();
Symbol 181 MovieClip Frame 50
gotoAndPlay (25);
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 32
stop();
if ((((((_root.p1 + _root.p1scale) == 5) && ((_root.p2 + _root.p2scale) == 5)) && ((_root.p3 + _root.p3scale) == 5)) && ((_root.p4 + _root.p4scale) == 5)) && ((_root.p5 + _root.p5scale) == 5)) {
_root.staydown = true;
_root.door1.play();
_root.door2.play();
play();
}
Symbol 185 MovieClip Frame 59
if (_root.staydown == false) {
_root.keydrag.inside = false;
_root.keydrag.moveme = 1;
} else {
_root.keydrag._visible = false;
stop();
}
Symbol 199 Button
on (press) {
if (_root.p5 >= 1) {
_root.thekey.pin5._y = _root.thekey.pin5._y + 5;
_root.thelock.lockpin5._y = _root.thelock.lockpin5._y + 8;
_root.thelock.power5._y = _root.thelock.power5._y + 8;
_root.p5 = _root.p5 - 1;
}
}
Symbol 200 Button
on (press) {
if (_root.p4 >= 1) {
_root.thekey.pin4._y = _root.thekey.pin4._y + 5;
_root.thelock.lockpin4._y = _root.thelock.lockpin4._y + 8;
_root.thelock.power4._y = _root.thelock.power4._y + 8;
_root.p4 = _root.p4 - 1;
}
}
Symbol 201 Button
on (press) {
if (_root.p3 >= 1) {
_root.thekey.pin3._y = _root.thekey.pin3._y + 5;
_root.thelock.lockpin3._y = _root.thelock.lockpin3._y + 8;
_root.thelock.power3._y = _root.thelock.power3._y + 8;
_root.p3 = _root.p3 - 1;
}
}
Symbol 202 Button
on (press) {
if (_root.p2 >= 1) {
_root.thekey.pin2._y = _root.thekey.pin2._y + 5;
_root.thelock.lockpin2._y = _root.thelock.lockpin2._y + 8;
_root.thelock.power2._y = _root.thelock.power2._y + 8;
_root.p2 = _root.p2 - 1;
}
}
Symbol 203 Button
on (press) {
if (_root.p1 >= 1) {
_root.thekey.pin1._y = _root.thekey.pin1._y + 5;
_root.thelock.lockpin1._y = _root.thelock.lockpin1._y + 8;
_root.thelock.power1._y = _root.thelock.power1._y + 8;
_root.p1 = _root.p1 - 1;
}
}
Symbol 224 Button
on (release) {
if ((((_root.one.text == "2") && (_root.two.text == "3")) && (_root.three.text == "9")) && (_root.four.text == "0")) {
stopAllSounds();
_root.completed[1] = 1;
_root.updateshared();
_root.gotoAndStop(2);
}
}
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 2
stop();
Symbol 251 Button
on (release) {
if (_root.answer.text == "03161987") {
stopAllSounds();
_root.completed[2] = 1;
_root.updateshared();
_root.gotoAndStop(2);
}
}
Symbol 256 Button
on (release) {
if (_root.connections != 4) {
_root.con1 = false;
_root.con2 = false;
_root.con3 = false;
_root.con4 = false;
_root.con5 = false;
_root.con6 = false;
_root.con7 = false;
_root.con8 = false;
_root.connections = 0;
_root.drawingPlane.clear();
}
}
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 2
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
stop();
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 2
stop();
Symbol 294 Button
on (release) {
if ((((_root.textgreen.text == "2") && (_root.textred.text == "10")) && (_root.textblue.text == "5")) && (_root.textyellow.text == "9")) {
_root.completed[3] = 1;
_root.updateshared();
_root.gotoAndStop(2);
}
}
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
stop();
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 2
stop();
Symbol 362 MovieClip Frame 1
stop();
Instance of Symbol 360 MovieClip "block1" in Symbol 362 MovieClip Frame 1
on (press) {
this.play();
}
Instance of Symbol 360 MovieClip "block2" in Symbol 362 MovieClip Frame 1
on (press) {
this.play();
}
Instance of Symbol 360 MovieClip "block3" in Symbol 362 MovieClip Frame 1
on (press) {
this.play();
}
Instance of Symbol 360 MovieClip "block4" in Symbol 362 MovieClip Frame 1
on (press) {
this.play();
}
Symbol 362 MovieClip Frame 6
if (_root.redcan._currentframe == 40) {
_root.redcan._visible = false;
}
if (_root.bluecan._currentframe == 40) {
_root.bluecan._visible = false;
}
if (_root.yellowcan._currentframe == 40) {
_root.yellowcan._visible = false;
}
Symbol 362 MovieClip Frame 34
thecolor = "";
Symbol 362 MovieClip Frame 49
if (_root.redcan._currentframe == 40) {
_root.redcan.gotoAndPlay(1);
_root.canmask1.gotoAndStop(1);
_root.redcan._visible = true;
}
if (_root.bluecan._currentframe == 40) {
_root.bluecan.gotoAndPlay(1);
_root.canmask2.gotoAndStop(1);
_root.bluecan._visible = true;
}
if (_root.yellowcan._currentframe == 40) {
_root.yellowcan.gotoAndPlay(1);
_root.canmask3.gotoAndStop(1);
_root.yellowcan._visible = true;
}
thecolor = "";
slot1 = false;
slot2 = false;
gotoAndStop (1);
Symbol 368 MovieClip Frame 1
_root.boxmod = 1;
stop();
Symbol 368 MovieClip Frame 2
_root.boxmod = 2;
stop();
Symbol 368 MovieClip Frame 3
_root.boxmod = 3;
stop();
Symbol 368 MovieClip Frame 4
_root.boxmod = 4;
stop();
Symbol 372 MovieClip Frame 1
stop();
Instance of Symbol 368 MovieClip "clip" in Symbol 373 MovieClip Frame 1
on (press) {
play();
}
Instance of Symbol 370 MovieClip in Symbol 373 MovieClip Frame 1
on (release) {
if (_root.machine.flash._currentframe == 1) {
_root.machine.clip._rotation = _root.machine.clip._rotation - 90;
_root.machine.flash.play();
}
}
Instance of Symbol 370 MovieClip in Symbol 373 MovieClip Frame 1
on (release) {
if (_root.machine.flash._currentframe == 1) {
_root.machine.clip._rotation = _root.machine.clip._rotation + 90;
_root.machine.flash.play();
}
}
Symbol 376 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 2
stop();
Symbol 379 MovieClip Frame 1
this._x = 32.2;
this._y = 358.75;
inside = false;
Symbol 379 MovieClip Frame 15
stop();
Symbol 379 MovieClip Frame 40
_root.machinecolor.thecolor = _root.machinecolor.thecolor + "yellow";
stop();
Symbol 379 MovieClip Frame 50
stop();
Symbol 382 MovieClip Frame 1
this._x = 32.2;
this._y = 335.45;
inside = false;
Symbol 382 MovieClip Frame 15
stop();
Symbol 382 MovieClip Frame 40
_root.machinecolor.thecolor = _root.machinecolor.thecolor + "blue";
stop();
Symbol 382 MovieClip Frame 50
stop();
Symbol 385 MovieClip Frame 1
this._x = 32.2;
this._y = 312.25;
inside = false;
Symbol 385 MovieClip Frame 15
stop();
Symbol 385 MovieClip Frame 40
_root.machinecolor.thecolor = _root.machinecolor.thecolor + "red";
stop();
Symbol 385 MovieClip Frame 50
stop();
Symbol 390 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 30
stop();
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 30
stop();
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 30
_root.box1check.play();
Symbol 398 MovieClip Frame 40
_root.box2check.play();
Symbol 398 MovieClip Frame 50
_root.box3check.play();
Symbol 398 MovieClip Frame 60
_root.box4check.play();
stop();
Symbol 398 MovieClip Frame 80
gotoAndStop (1);
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 60
stop();
Symbol 400 MovieClip Frame 90
_root.light.gotoAndStop(1);
_root.yup = false;
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 30
stop();
if (_root.main.keys.key1._currentframe == _root.main.box_1_col._currentframe) {
gotoAndStop (32);
_root.right = _root.right + 1;
} else {
gotoAndStop (31);
}
Symbol 404 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 30
stop();
if (_root.main.keys.key2._currentframe == _root.main.box_2_col._currentframe) {
gotoAndStop (32);
_root.right = _root.right + 1;
} else {
gotoAndStop (31);
}
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 30
stop();
if (_root.main.keys.key3._currentframe == _root.main.box_3_col._currentframe) {
gotoAndStop (32);
_root.right = _root.right + 1;
} else {
gotoAndStop (31);
}
Symbol 406 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 30
stop();
if (_root.main.keys.key4._currentframe == _root.main.box_4_col._currentframe) {
gotoAndStop (32);
_root.right = _root.right + 1;
} else {
gotoAndStop (31);
}
Symbol 406 MovieClip Frame 31
if (_root.right < 4) {
_root.exitsign._visible = true;
_root.exitsign.play();
} else {
_root.completed[4] = 1;
_root.updateshared();
_root.gotoAndStop(2);
}
Symbol 406 MovieClip Frame 32
if (_root.right < 4) {
_root.exitsign._visible = true;
_root.exitsign.play();
} else {
_root.completed[4] = 1;
_root.updateshared();
_root.gotoAndStop(2);
}
Symbol 406 MovieClip Frame 60
_root.fadeit.gotoAndPlay(61);
_root.exitsign.play();
Symbol 409 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 2
stop();
Symbol 434 MovieClip Frame 1
_root.box_1mod = 1;
stop();
Symbol 434 MovieClip Frame 2
_root.box_1mod = 2;
Symbol 434 MovieClip Frame 3
_root.box_1mod = 3;
Symbol 434 MovieClip Frame 4
_root.box_1mod = 4;
Symbol 434 MovieClip Frame 5
_root.box_1mod = 1;
stop();
Symbol 434 MovieClip Frame 6
_root.box_1mod = 2;
Symbol 434 MovieClip Frame 7
_root.box_1mod = 3;
Symbol 434 MovieClip Frame 8
stop();
Symbol 434 MovieClip Frame 9
_root.box_1mod = 1;
stop();
Symbol 434 MovieClip Frame 10
_root.box_1mod = 2;
Symbol 434 MovieClip Frame 11
_root.box_1mod = 3;
Symbol 434 MovieClip Frame 12
stop();
Symbol 434 MovieClip Frame 13
_root.box_1mod = 1;
stop();
Symbol 434 MovieClip Frame 14
_root.box_1mod = 2;
Symbol 434 MovieClip Frame 15
_root.box_1mod = 3;
Symbol 434 MovieClip Frame 16
stop();
Symbol 434 MovieClip Frame 17
_root.box_1mod = 1;
stop();
Symbol 434 MovieClip Frame 18
_root.box_1mod = 2;
Symbol 434 MovieClip Frame 19
_root.box_1mod = 3;
Symbol 434 MovieClip Frame 20
stop();
Symbol 434 MovieClip Frame 21
_root.box_1mod = 1;
stop();
Symbol 434 MovieClip Frame 22
_root.box_1mod = 2;
Symbol 434 MovieClip Frame 23
_root.box_1mod = 3;
Symbol 434 MovieClip Frame 24
stop();
Symbol 434 MovieClip Frame 25
_root.box_1mod = 1;
stop();
Symbol 434 MovieClip Frame 26
_root.box_1mod = 2;
Symbol 434 MovieClip Frame 27
_root.box_1mod = 3;
Symbol 434 MovieClip Frame 28
stop();
Symbol 456 MovieClip Frame 1
_root.box_1mod = 1;
stop();
Symbol 456 MovieClip Frame 2
_root.box_1mod = 2;
Symbol 456 MovieClip Frame 3
_root.box_1mod = 3;
Symbol 456 MovieClip Frame 4
_root.box_1mod = 4;
Symbol 456 MovieClip Frame 5
_root.box_1mod = 1;
stop();
Symbol 456 MovieClip Frame 6
_root.box_1mod = 2;
Symbol 456 MovieClip Frame 7
_root.box_1mod = 3;
Symbol 456 MovieClip Frame 8
stop();
Symbol 456 MovieClip Frame 9
_root.box_1mod = 1;
stop();
Symbol 456 MovieClip Frame 10
_root.box_1mod = 2;
Symbol 456 MovieClip Frame 11
_root.box_1mod = 3;
Symbol 456 MovieClip Frame 12
stop();
Symbol 456 MovieClip Frame 13
_root.box_1mod = 1;
stop();
Symbol 456 MovieClip Frame 14
_root.box_1mod = 2;
Symbol 456 MovieClip Frame 15
_root.box_1mod = 3;
Symbol 456 MovieClip Frame 16
stop();
Symbol 456 MovieClip Frame 17
_root.box_1mod = 1;
stop();
Symbol 456 MovieClip Frame 18
_root.box_1mod = 2;
Symbol 456 MovieClip Frame 19
_root.box_1mod = 3;
Symbol 456 MovieClip Frame 20
stop();
Symbol 456 MovieClip Frame 21
_root.box_1mod = 1;
stop();
Symbol 456 MovieClip Frame 22
_root.box_1mod = 2;
Symbol 456 MovieClip Frame 23
_root.box_1mod = 3;
Symbol 456 MovieClip Frame 24
stop();
Symbol 456 MovieClip Frame 25
_root.box_1mod = 1;
stop();
Symbol 456 MovieClip Frame 26
_root.box_1mod = 2;
Symbol 456 MovieClip Frame 27
_root.box_1mod = 3;
Symbol 456 MovieClip Frame 28
stop();
Symbol 478 MovieClip Frame 1
_root.box_1mod = 1;
stop();
Symbol 478 MovieClip Frame 2
_root.box_1mod = 2;
Symbol 478 MovieClip Frame 3
_root.box_1mod = 3;
Symbol 478 MovieClip Frame 4
_root.box_1mod = 4;
Symbol 478 MovieClip Frame 5
_root.box_1mod = 1;
stop();
Symbol 478 MovieClip Frame 6
_root.box_1mod = 2;
Symbol 478 MovieClip Frame 7
_root.box_1mod = 3;
Symbol 478 MovieClip Frame 8
stop();
Symbol 478 MovieClip Frame 9
_root.box_1mod = 1;
stop();
Symbol 478 MovieClip Frame 10
_root.box_1mod = 2;
Symbol 478 MovieClip Frame 11
_root.box_1mod = 3;
Symbol 478 MovieClip Frame 12
stop();
Symbol 478 MovieClip Frame 13
_root.box_1mod = 1;
stop();
Symbol 478 MovieClip Frame 14
_root.box_1mod = 2;
Symbol 478 MovieClip Frame 15
_root.box_1mod = 3;
Symbol 478 MovieClip Frame 16
stop();
Symbol 478 MovieClip Frame 17
_root.box_1mod = 1;
stop();
Symbol 478 MovieClip Frame 18
_root.box_1mod = 2;
Symbol 478 MovieClip Frame 19
_root.box_1mod = 3;
Symbol 478 MovieClip Frame 20
stop();
Symbol 478 MovieClip Frame 21
_root.box_1mod = 1;
stop();
Symbol 478 MovieClip Frame 22
_root.box_1mod = 2;
Symbol 478 MovieClip Frame 23
_root.box_1mod = 3;
Symbol 478 MovieClip Frame 24
stop();
Symbol 478 MovieClip Frame 25
_root.box_1mod = 1;
stop();
Symbol 478 MovieClip Frame 26
_root.box_1mod = 2;
Symbol 478 MovieClip Frame 27
_root.box_1mod = 3;
Symbol 478 MovieClip Frame 28
stop();
Symbol 500 MovieClip Frame 1
_root.box_1mod = 1;
stop();
Symbol 500 MovieClip Frame 2
_root.box_1mod = 2;
Symbol 500 MovieClip Frame 3
_root.box_1mod = 3;
Symbol 500 MovieClip Frame 4
_root.box_1mod = 4;
Symbol 500 MovieClip Frame 5
_root.box_1mod = 1;
stop();
Symbol 500 MovieClip Frame 6
_root.box_1mod = 2;
Symbol 500 MovieClip Frame 7
_root.box_1mod = 3;
Symbol 500 MovieClip Frame 8
stop();
Symbol 500 MovieClip Frame 9
_root.box_1mod = 1;
stop();
Symbol 500 MovieClip Frame 10
_root.box_1mod = 2;
Symbol 500 MovieClip Frame 11
_root.box_1mod = 3;
Symbol 500 MovieClip Frame 12
stop();
Symbol 500 MovieClip Frame 13
_root.box_1mod = 1;
stop();
Symbol 500 MovieClip Frame 14
_root.box_1mod = 2;
Symbol 500 MovieClip Frame 15
_root.box_1mod = 3;
Symbol 500 MovieClip Frame 16
stop();
Symbol 500 MovieClip Frame 17
_root.box_1mod = 1;
stop();
Symbol 500 MovieClip Frame 18
_root.box_1mod = 2;
Symbol 500 MovieClip Frame 19
_root.box_1mod = 3;
Symbol 500 MovieClip Frame 20
stop();
Symbol 500 MovieClip Frame 21
_root.box_1mod = 1;
stop();
Symbol 500 MovieClip Frame 22
_root.box_1mod = 2;
Symbol 500 MovieClip Frame 23
_root.box_1mod = 3;
Symbol 500 MovieClip Frame 24
stop();
Symbol 500 MovieClip Frame 25
_root.box_1mod = 1;
stop();
Symbol 500 MovieClip Frame 26
_root.box_1mod = 2;
Symbol 500 MovieClip Frame 27
_root.box_1mod = 3;
Symbol 500 MovieClip Frame 28
stop();
Instance of Symbol 434 MovieClip "key4" in Symbol 502 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((4 * _root.colors[3]) + _root.newkeyarray[3]);
if ((this._currentframe / 4) == Math.round(this._currentframe / 4)) {
this.gotoAndStop(4);
}
}
Instance of Symbol 456 MovieClip "key3" in Symbol 502 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((4 * _root.colors[2]) + _root.newkeyarray[2]);
if ((this._currentframe / 4) == Math.round(this._currentframe / 4)) {
this.gotoAndStop(4);
}
}
Instance of Symbol 478 MovieClip "key2" in Symbol 502 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((4 * _root.colors[1]) + _root.newkeyarray[1]);
if ((this._currentframe / 4) == Math.round(this._currentframe / 4)) {
this.gotoAndStop(4);
}
}
Instance of Symbol 500 MovieClip "key1" in Symbol 502 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((4 * _root.colors[0]) + _root.newkeyarray[0]);
if ((this._currentframe / 4) == Math.round(this._currentframe / 4)) {
this.gotoAndStop(4);
}
}
Symbol 503 MovieClip Frame 1
stop();
Instance of Symbol 502 MovieClip "keys" in Symbol 503 MovieClip Frame 1
onClipEvent (load) {
_root.keyarray = new Array(1, 2, 3, 4);
_root.newkeyarray = new Array(0, 0, 0, 0);
x = 0;
while (x <= 3) {
ran = random(_root.keyarray.length);
_root.newkeyarray[x] = _root.keyarray[ran];
_root.keyarray.splice(ran, 1);
x++;
}
_root.primary = new Array(1, 2, 3);
_root.mixed = new Array(4, 5, 6);
_root.colors = new Array(0, 0, 0, 0);
x = 0;
while (x <= 3) {
first = random(10);
if (first <= 3) {
_root.colors[x] = _root.primary[random(3)];
} else {
_root.colors[x] = _root.mixed[random(3)];
}
x++;
}
}
Symbol 503 MovieClip Frame 17
if (_root.machine.clip._rotation == 0) {
box_2_col.gotoAndStop((4 * _root.color2) + _root.boxmod);
box_2_col.mod = _root.boxmod;
}
if (_root.machine.clip._rotation == -90) {
box_1_col.gotoAndStop((4 * _root.color1) + _root.boxmod);
box_1_col.mod = _root.boxmod;
}
if ((_root.machine.clip._rotation == -180) || (_root.machine.clip._rotation == 180)) {
box_3_col.gotoAndStop((4 * _root.color3) + _root.boxmod);
box_3_col.mod = _root.boxmod;
}
if (_root.machine.clip._rotation == 90) {
box_4_col.gotoAndStop((4 * _root.color4) + _root.boxmod);
box_4_col.mod = _root.boxmod;
}
Symbol 503 MovieClip Frame 35
this._x = 494;
this._y = 70;
nomove = false;
gotoAndStop (1);
Symbol 503 MovieClip Frame 52
_root.maincolor = 0;
_root.machinecolor.play();
switch (_root.machinecolor.thecolor) {
case "red" :
_root.maincolor = 1;
break;
case "blue" :
_root.maincolor = 2;
break;
case "yellow" :
_root.maincolor = 3;
break;
case "redblue" :
case "bluered" :
_root.maincolor = 4;
break;
case "blueyellow" :
case "yellowblue" :
_root.maincolor = 6;
break;
case "yellowred" :
case "redyellow" :
_root.maincolor = 5;
break;
}
if (_root.maincolor != 0) {
x = 1;
while (x <= 4) {
if (eval (("_root.machinecolor.block" + x) + "._currentframe") == 1) {
Set("_root.color" + x, _root.maincolor);
woot = (4 * _root.maincolor) + eval (("box_" + x) + "_col.mod");
eval (("box_" + x) + "_col").gotoAndStop(woot);
}
x++;
}
}
Symbol 503 MovieClip Frame 75
nomove = false;
stop();
Symbol 508 Button
on (release) {
x = 1;
while (x <= 4) {
q = ("_root.main.box_" + x) + "_col";
if ((eval (q)._currentframe / 4) == Math.round(eval (q)._currentframe / 4)) {
eval (q).gotoAndStop(4);
}
x++;
}
_root.main.moveto = true;
_root.yup = true;
_root.light.gotoAndStop(3);
this.gotoAndStop(1);
}
Symbol 511 Button
on (release) {
_root.edge.startDrag(true);
_root.light.gotoAndStop(3);
Mouse.hide();
_root.main.boxmask.gotoAndStop(2);
_root.themenu.gotoAndStop(1);
_root.yup = true;
}
Symbol 512 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 18
stop();
Symbol 520 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 2
stop();
Symbol 527 MovieClip Frame 7
stop();
core.length = 0;
nailedblocks.length = 0;
x = 0;
while (x <= _root.blocks.length) {
if (this.hitTest(eval ("_root." + _root.blocks[x]))) {
nailedblocks.push(_root.blocks[x]);
}
x++;
}
buddy = nailedblocks[0];
buddyXdiff = _x - eval ("_root." + buddy)._x;
buddyYdiff = _y - eval ("_root." + buddy)._y;
_root.group1 = nailedblocks;
_root.regroupblocks();
Symbol 528 MovieClip Frame 2
stop();
Symbol 528 MovieClip Frame 7
stop();
core.length = 0;
nailedblocks.length = 0;
x = 0;
while (x <= (_root.blocks.length - 1)) {
if (this.hitTest(eval ("_root." + _root.blocks[x]))) {
nailedblocks.push(_root.blocks[x]);
}
x++;
}
buddy = nailedblocks[0];
buddyXdiff = _x - eval ("_root." + buddy)._x;
buddyYdiff = _y - eval ("_root." + buddy)._y;
exit = false;
x = 0;
while (x <= (nailedblocks.length - 1)) {
y = 0;
while (y <= (_root.group1.length - 1)) {
if (nailedblocks[x] == _root.group1[y]) {
_root.group1 = _root.group1.concat(nailedblocks);
exit = true;
break;
}
y++;
}
if (exit == true) {
break;
}
x++;
}
if (exit == false) {
_root.group2 = nailedblocks;
}
_root.regroupblocks();
Symbol 529 MovieClip Frame 2
stop();
Symbol 529 MovieClip Frame 7
stop();
core.length = 0;
nailedblocks.length = 0;
x = 0;
while (x <= (_root.blocks.length - 1)) {
if (this.hitTest(eval ("_root." + _root.blocks[x]))) {
nailedblocks.push(_root.blocks[x]);
}
x++;
}
buddy = nailedblocks[0];
buddyXdiff = _x - eval ("_root." + buddy)._x;
buddyYdiff = _y - eval ("_root." + buddy)._y;
exit = false;
x = 0;
while (x <= (nailedblocks.length - 1)) {
y = 0;
while (y <= (_root.group1.length - 1)) {
if (nailedblocks[x] == _root.group1[y]) {
_root.group1 = _root.group1.concat(nailedblocks);
exit = true;
break;
}
y++;
}
if (exit == true) {
break;
}
x++;
}
if ((exit == false) && (_root.group2.length != 0)) {
x = 0;
while (x <= (nailedblocks.length - 1)) {
y = 0;
while (y <= (_root.group2.length - 1)) {
if (nailedblocks[x] == _root.group2[y]) {
_root.group2 = _root.group2.concat(nailedblocks);
exit = true;
break;
}
y++;
}
if (exit == true) {
break;
}
x++;
}
}
if (exit == false) {
_root.group3 = nailedblocks;
}
_root.regroupblocks();
Symbol 530 MovieClip Frame 2
stop();
Symbol 530 MovieClip Frame 7
stop();
core.length = 0;
nailedblocks.length = 0;
x = 0;
while (x <= (_root.blocks.length - 1)) {
if (this.hitTest(eval ("_root." + _root.blocks[x]))) {
nailedblocks.push(_root.blocks[x]);
}
x++;
}
buddy = nailedblocks[0];
buddyXdiff = _x - eval ("_root." + buddy)._x;
buddyYdiff = _y - eval ("_root." + buddy)._y;
exit = false;
x = 0;
while (x <= (nailedblocks.length - 1)) {
y = 0;
while (y <= (_root.group1.length - 1)) {
if (nailedblocks[x] == _root.group1[y]) {
_root.group1 = _root.group1.concat(nailedblocks);
exit = true;
break;
}
y++;
}
if (exit == true) {
break;
}
x++;
}
if ((exit == false) && (_root.group2.length != 0)) {
x = 0;
while (x <= (nailedblocks.length - 1)) {
y = 0;
while (y <= (_root.group2.length - 1)) {
if (nailedblocks[x] == _root.group2[y]) {
_root.group2 = _root.group2.concat(nailedblocks);
exit = true;
break;
}
y++;
}
if (exit == true) {
break;
}
x++;
}
}
if ((exit == false) && (_root.group3.length != 0)) {
x = 0;
while (x <= (nailedblocks.length - 1)) {
y = 0;
while (y <= (_root.group3.length - 1)) {
if (nailedblocks[x] == _root.group3[y]) {
_root.group3 = _root.group3.concat(nailedblocks);
exit = true;
break;
}
y++;
}
if (exit == true) {
break;
}
x++;
}
}
if (exit == false) {
_root.group4 = nailedblocks;
}
_root.regroupblocks();
_root.completed2 = false;
if (_root.group1.length == 6) {
if (((((((((((_root.block1._x - _root.block2._x) == 0) && ((_root.block1._x - _root.block3._x) == 0)) && ((_root.block1._x - _root.block4._x) == 0)) && ((_root.block1._x - _root.block5._x) == -108)) && ((_root.block1._x - _root.block6._x) == -144)) && ((_root.block1._y - _root.block2._y) == -72)) && ((_root.block1._y - _root.block3._y) == -144)) && ((_root.block1._y - _root.block4._y) == -180)) && ((_root.block1._y - _root.block5._y) == -36)) && ((_root.block1._y - _root.block6._y) == -72)) {
_root.completed2 = true;
}
}
Symbol 541 MovieClip Frame 1
stop();
Symbol 547 MovieClip Frame 1
stop();
_root.turnbutton.gotoAndStop(1);
Symbol 547 MovieClip Frame 2
_root.turnbutton.gotoAndStop(2);
Symbol 550 MovieClip Frame 1
thegun.gotoAndStop(1);
stop();
Symbol 550 MovieClip Frame 2
thegun.gotoAndStop(2);
Symbol 553 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 60
stop();
Symbol 570 MovieClip Frame 115
gotoAndStop (1);
Symbol 573 MovieClip Frame 1
stop();
Symbol 573 MovieClip Frame 60
stop();
Symbol 573 MovieClip Frame 115
gotoAndStop (1);
Symbol 576 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 60
stop();
Symbol 576 MovieClip Frame 115
gotoAndStop (1);
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 60
stop();
Symbol 579 MovieClip Frame 115
gotoAndStop (1);
Symbol 582 MovieClip Frame 1
stop();
Symbol 582 MovieClip Frame 60
stop();
Symbol 582 MovieClip Frame 115
gotoAndStop (1);
Symbol 585 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 60
stop();
Symbol 585 MovieClip Frame 115
gotoAndStop (1);
Symbol 589 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 2
yChange = Math.round(_root.gotoY - this._y);
yMove = Math.round(yChange / 5);
this._y = this._y + yMove;
if (this._y >= (_root.gotoY - 2)) {
gotoAndPlay (4);
}
Symbol 589 MovieClip Frame 3
gotoAndPlay (2);
Symbol 589 MovieClip Frame 40
_root.notconnected = new Array();
if (_root.gotoY == 385) {
_root.notconnected = _root.blocks;
} else {
len = eval (_root.grabbed).connected.length;
x = 0;
while (x <= 5) {
match = false;
y = 0;
while (y <= (len - 1)) {
if (eval (_root.grabbed).connected[y] == _root.blocks[x]) {
match = true;
}
y++;
}
if (match == false) {
_root.notconnected.push(_root.blocks[x]);
}
x++;
}
}
z = 1;
while (z <= 4) {
eval ("_root.nail" + z)._visible = false;
z++;
}
if ((_root.completed2 == false) && (_root.notconnected.length > 0)) {
x = 0;
while (x <= (_root.notconnected.length - 1)) {
eval ("_root." + _root.notconnected[x]).gotoAndPlay(3);
x++;
}
} else if ((_root.completed2 == true) && (_root.gotoY != 385)) {
_root.completed[5] = 1;
_root.updateshared();
_root.gotoAndStop(2);
_root.gun.gotoAndStop(3);
x = 1;
while (x <= 6) {
eval ("_root.block" + x).removeMovieClip();
x++;
}
_root.crane.removeMovieClip();
_root.gun.removeMovieClip();
}
Symbol 589 MovieClip Frame 198
_root.gotoY = 18;
Symbol 589 MovieClip Frame 199
yChange = Math.round(_root.gotoY - this._y);
yMove = Math.round(yChange / 5);
this._y = this._y + yMove;
if (this._y <= (_root.gotoY + 3)) {
_y = 18;
gotoAndPlay (202);
}
Symbol 589 MovieClip Frame 200
gotoAndPlay (199);
Symbol 589 MovieClip Frame 202
x = 0;
while (x <= (_root.notconnected.length - 1)) {
eval ("_root." + _root.notconnected[x]).gotoAndPlay(61);
x++;
}
_root.goingdown = false;
Symbol 589 MovieClip Frame 256
z = 1;
while (z <= 4) {
eval ("_root.nail" + z)._visible = true;
z++;
}
_root.notouch._x = -600;
gotoAndStop (1);
Symbol 593 Button
on (keyPress "<Down>") {
if (_root.chosen.length != 0) {
_root.movement(0, 36);
}
}
on (release) {
_root.arrowkeyhit = _root.arrowkeyhit + 1;
if (_root.chosen.length != 0) {
_root.movement(0, 36);
}
}
Symbol 594 Button
on (keyPress "<Right>") {
if (_root.chosen.length != 0) {
_root.movement(36, 0);
}
}
on (release) {
_root.arrowkeyhit = _root.arrowkeyhit + 1;
if (_root.chosen.length != 0) {
_root.movement(36, 0);
}
}
Symbol 595 Button
on (keyPress "<Up>") {
if (_root.chosen.length != 0) {
_root.movement(0, -36);
}
}
on (release) {
_root.arrowkeyhit = _root.arrowkeyhit + 1;
if (_root.chosen.length != 0) {
_root.movement(0, -36);
}
}
Symbol 596 Button
on (keyPress "<Left>") {
if (_root.chosen.length != 0) {
_root.movement(-36, 0);
}
}
on (release) {
_root.arrowkeyhit = _root.arrowkeyhit + 1;
if (_root.chosen.length != 0) {
_root.movement(-36, 0);
}
}
Symbol 598 MovieClip Frame 1
this._x = 225;
this._y = 21;
stop();
Symbol 598 MovieClip Frame 2
theY = _y;
_root.gotoY = 0;
y = theY;
while (y <= 500) {
_y = y;
x = 1;
while (x <= 6) {
if (this.hitTest(eval ("_root.block" + x))) {
_root.grabbed = eval ("_root.block" + x);
_root.gotoY = eval ("_root.block" + x)._y;
break;
}
x++;
}
if (_root.gotoY != 0) {
break;
}
y = y + 10;
}
if (_root.gotoY == 0) {
_root.gotoY = 385;
}
_root.crane.gotoAndPlay(2);
Symbol 601 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 15
_root.arrowkeyhit = 25;
Symbol 601 MovieClip Frame 290
gotoAndStop (1);
Symbol 609 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 2
_x = eval ("_root.circle" + _root.ringnum)._x;
_y = eval ("_root.circle" + _root.ringnum)._y;
Instance of Symbol 618 MovieClip "top" in Symbol 620 MovieClip Frame 2
onClipEvent (enterFrame) {
_yscale = ((Math.abs(_root.finalY - _parent._y) / _root.ymax) * 100);
}
Instance of Symbol 618 MovieClip "bottom" in Symbol 620 MovieClip Frame 2
onClipEvent (enterFrame) {
_yscale = ((Math.abs(_root.finalX - _parent._x) / _root.xmax) * 100);
}
Symbol 620 MovieClip Frame 3
gotoAndPlay (2);
Instance of Symbol 622 MovieClip "sevenbar4" in Symbol 623 MovieClip Frame 1
on (press) {
point = _xmouse;
down = true;
}
on (release, releaseOutside) {
down = false;
_root.check2();
}
onClipEvent (enterFrame) {
if (down == true) {
_root.twoall.two2.two3.two4._rotation = _root.twoall.two2.two3.two4._rotation + ((_xmouse - point) / 30);
}
}
Instance of Symbol 625 MovieClip "sevenbar3" in Symbol 626 MovieClip Frame 1
on (press) {
point = _xmouse;
down = true;
}
on (release, releaseOutside) {
down = false;
_root.check2();
}
onClipEvent (enterFrame) {
if (down == true) {
_parent._rotation = _parent._rotation + ((_xmouse - point) / 30);
}
}
Instance of Symbol 628 MovieClip "sevenbar2" in Symbol 629 MovieClip Frame 1
on (press) {
point = _xmouse;
down = true;
}
on (release, releaseOutside) {
down = false;
_root.check2();
}
onClipEvent (enterFrame) {
if (down == true) {
_root.twoall.two2._rotation = _root.twoall.two2._rotation + ((_xmouse - point) / 30);
}
}
Instance of Symbol 631 MovieClip "sevenbar1" in Symbol 634 MovieClip Frame 1
on (press) {
point = _xmouse;
down = true;
}
on (release, releaseOutside) {
down = false;
_root.check2();
}
onClipEvent (enterFrame) {
if (down == true) {
_root.twoall._rotation = _root.twoall._rotation + ((_xmouse - point) / 30);
}
}
Instance of Symbol 633 MovieClip in Symbol 634 MovieClip Frame 1
on (press) {
_root.twoall.startDrag(false);
}
on (release) {
_root.twoall.stopDrag();
}
Symbol 636 Button
on (release) {
if (_root.locker.text == "2") {
_root.completed[6] = 1;
_root.updateshared();
_root.gotoAndStop(2);
}
}
Symbol 645 MovieClip Frame 1
locked = false;
stop();
Symbol 651 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 1
stop();
Instance of Symbol 27 MovieClip in Symbol 653 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._rotation = _parent._rotation + ((_parent.Ypos - _root._ymouse) / 20);
}
Symbol 658 MovieClip Frame 1
stop();
Symbol 659 MovieClip Frame 1
stop();
Symbol 664 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 40
stop();
Symbol 672 MovieClip Frame 1
stop();
Symbol 672 MovieClip Frame 29
stop();
Symbol 675 MovieClip Frame 29
_root.sawY = 0;
Symbol 675 MovieClip Frame 30
if (_root.sawY != 0) {
gotoAndStop (32);
}
Symbol 675 MovieClip Frame 31
gotoAndPlay (30);
Symbol 675 MovieClip Frame 32
thecut._visible = true;
bottommask._yscale = ((380 - _root.sawY) / 300) * 100;
topmask._yscale = 100 - bottommask._yscale;
thecut._y = bottommask._y - bottommask._height;
bottomline._y = bottommask._y - bottommask._height;
saw_mask._y = bottommask._y - bottommask._height;
_root.saw.setMask(saw_mask);
_root.saw.gotoAndStop(5);
_root.sawed = false;
gotoAndStop (34);
Symbol 675 MovieClip Frame 34
if (_root.sawed == true) {
gotoAndPlay (36);
} else {
gotoAndPlay (34);
}
Symbol 675 MovieClip Frame 35
gotoAndPlay (34);
Symbol 675 MovieClip Frame 36
thecut.play();
Symbol 675 MovieClip Frame 62
_root.attachMovie("logpiece", String("logpiece" + _root.logcount), _root.depthcount);
eval ("_root.logpiece" + _root.logcount).sendablelog = _root.logcount;
_root.depthcount++;
_root.logcount--;
Symbol 675 MovieClip Frame 94
stop();
Symbol 685 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 1
stop();
Symbol 690 MovieClip Frame 1
stop();
Instance of Symbol 687 MovieClip "sawhandle" in Symbol 690 MovieClip Frame 1
on (press, release, releaseOutside) {
if (_parent._currentframe == 2) {
if (_parent._y > 86) {
this.gotoAndStop(1);
_root.sawY = _parent._y;
}
}
if (_parent._currentframe == 1) {
_root.sawY = 0;
startDrag (_parent, false, _parent._x, _height / 2, _parent._x, 340);
_root.sawing = true;
this.gotoAndStop(2);
_parent.gotoAndStop(2);
}
}
Symbol 690 MovieClip Frame 5
_root.sawing = true;
Instance of Symbol 689 MovieClip in Symbol 690 MovieClip Frame 5
on (press) {
trace("woot");
}
Instance of Symbol 687 MovieClip in Symbol 690 MovieClip Frame 5
onClipEvent (load) {
lastside = "right";
frametogoto = 15;
percentage = 0;
}
onClipEvent (enterFrame) {
if (lastside == "right") {
if (_parent._x != 57) {
percentage = Math.abs((_parent._x - _root.right) / (_root.right - 57));
startDrag (_parent, false, 57, _parent._y, _parent._x, _parent._y);
} else if ((frametogoto + 10) <= 205) {
frametogoto = frametogoto + 10;
lastside = "left";
}
}
if (lastside == "left") {
if (_parent._x != _root.right) {
percentage = (_parent._x - 57) / (_root.right - 57);
startDrag (_parent, false, _parent._x, _parent._y, _root.right, _parent._y);
} else if ((frametogoto + 10) <= 205) {
frametogoto = frametogoto + 10;
lastside = "right";
} else {
_parent.stopDrag();
_parent.setMask(null);
_root.sawing = false;
_parent.gotoAndPlay(206);
}
}
_parent.gotoAndStop((frametogoto - 10) + Math.round(percentage * 10));
_parent.thesaw.gotoAndStop(_parent._currentframe);
}
Symbol 690 MovieClip Frame 205
thesaw.setMask(null);
thesaw.stopDrag();
Instance of Symbol 687 MovieClip in Symbol 690 MovieClip Frame 205
onClipEvent (load) {
lastside = "right";
frametogoto = 15;
percentage = 0;
}
onClipEvent (enterFrame) {
_parent.gotoAndStop();
if (lastside == "right") {
if (_parent._x != 57) {
percentage = Math.abs((_parent._x - _root.right) / (_root.right - 57));
startDrag (_parent, false, 57, _parent._y, _parent._x, _parent._y);
} else if ((frametogoto + 10) <= 205) {
frametogoto = frametogoto + 10;
lastside = "left";
} else {
_parent.gotoAndStop(206);
}
}
if (lastside == "left") {
if (_parent._x != _root.right) {
percentage = (_parent._x - 57) / (_root.right - 57);
startDrag (_parent, false, _parent._x, _parent._y, _root.right, _parent._y);
} else if ((frametogoto + 10) <= 205) {
frametogoto = frametogoto + 10;
lastside = "right";
} else {
_parent.gotoAndStop(206);
}
}
_parent.gotoAndStop((frametogoto - 10) + Math.round(percentage * 10));
_parent.thesaw.gotoAndStop(_parent._currentframe);
}
Symbol 690 MovieClip Frame 225
this._y = firstY;
_root.sawed = true;
stop();
Symbol 690 MovieClip Frame 226
if (_root.logcount > 0) {
gotoAndPlay (230);
}
Symbol 690 MovieClip Frame 227
gotoAndPlay(_currentframe - 1);
Symbol 690 MovieClip Frame 264
_root.thelog.gotoAndPlay(1);
gotoAndStop (1);
Instance of Symbol 706 MovieClip in Symbol 707 MovieClip Frame 1
on (press) {
_root.selecter._x = _parent._x;
_root.selecter._y = _parent._y;
_root.chosen = _parent.col;
}
Symbol 712 Button
on (press) {
_root.completed[8] = 1;
_root.updateshared();
_root.gotoAndStop(2);
}
Symbol 722 MovieClip Frame 1
stop();
Instance of Symbol 726 MovieClip in Symbol 727 MovieClip Frame 1
onClipEvent (load) {
_parent.thiscolor = 0;
mycolor = new Color(this);
}
on (press) {
if (_root.option._currentframe == 2) {
_alpha = 100;
_parent.thiscolor = _root.chosen;
_root.thelist[_parent.i] = _root.chosen;
total = 0;
x = 0;
while (x < 31) {
trace(_root.answerlist[x]);
if (_root.answerlist[x] != _root.thelist[x]) {
x = 31;
} else {
total++;
}
x++;
}
if (total == 31) {
_root.option.gotoAndStop(5);
_root.stoptouch._visible = true;
_root.caseing.gotoAndStop(2);
_root.caseing._x = 456.5;
} else {
trace("total: " + total);
}
switch (_root.chosen) {
case 1 :
mycolor.setRGB(14156033);
break;
case 2 :
mycolor.setRGB(237);
break;
case 3 :
mycolor.setRGB(16776960);
break;
case 4 :
mycolor.setRGB(16750848);
break;
case 5 :
mycolor.setRGB(64512);
break;
case 6 :
mycolor.setRGB(457191);
break;
case 7 :
mycolor.setRGB(13369497);
}
} else {
_alpha = 0;
_root.thelist[_parent.i] = 0;
_parent.thiscolor = 0;
}
}
Instance of Symbol 727 MovieClip "s29" in Symbol 730 MovieClip Frame 1
onClipEvent (load) {
i = 28;
}
Instance of Symbol 729 MovieClip "s30" in Symbol 730 MovieClip Frame 1
onClipEvent (load) {
mycolor = new Color(this.hit);
mycolor.setRGB(14156033);
i = 29;
}
Instance of Symbol 729 MovieClip "s31" in Symbol 730 MovieClip Frame 1
onClipEvent (load) {
mycolor = new Color(this.hit);
mycolor.setRGB(16776960);
i = 30;
}
Instance of Symbol 727 MovieClip "s21" in Symbol 731 MovieClip Frame 1
onClipEvent (load) {
i = 20;
}
Instance of Symbol 727 MovieClip "s20" in Symbol 731 MovieClip Frame 1
onClipEvent (load) {
i = 19;
}
Instance of Symbol 727 MovieClip "s22" in Symbol 731 MovieClip Frame 1
onClipEvent (load) {
i = 21;
}
Instance of Symbol 729 MovieClip "s23" in Symbol 731 MovieClip Frame 1
onClipEvent (load) {
mycolor = new Color(this.hit);
mycolor.setRGB(64512);
i = 22;
}
Instance of Symbol 727 MovieClip "s24" in Symbol 731 MovieClip Frame 1
onClipEvent (load) {
i = 23;
}
Instance of Symbol 727 MovieClip "s25" in Symbol 732 MovieClip Frame 1
onClipEvent (load) {
i = 24;
}
Instance of Symbol 727 MovieClip "s26" in Symbol 732 MovieClip Frame 1
onClipEvent (load) {
i = 25;
}
Instance of Symbol 727 MovieClip "s27" in Symbol 732 MovieClip Frame 1
onClipEvent (load) {
i = 26;
}
Instance of Symbol 729 MovieClip "s28" in Symbol 732 MovieClip Frame 1
onClipEvent (load) {
mycolor = new Color(this.hit);
mycolor.setRGB(457191);
i = 27;
}
Instance of Symbol 729 MovieClip "s16" in Symbol 733 MovieClip Frame 1
onClipEvent (load) {
mycolor = new Color(this.hit);
mycolor.setRGB(457191);
i = 15;
}
Instance of Symbol 727 MovieClip "s15" in Symbol 733 MovieClip Frame 1
onClipEvent (load) {
i = 14;
}
Instance of Symbol 727 MovieClip "s14" in Symbol 733 MovieClip Frame 1
onClipEvent (load) {
i = 13;
}
Instance of Symbol 729 MovieClip "s13" in Symbol 733 MovieClip Frame 1
onClipEvent (load) {
mycolor = new Color(this.hit);
mycolor.setRGB(16750848);
i = 12;
}
Instance of Symbol 727 MovieClip "s17" in Symbol 733 MovieClip Frame 1
onClipEvent (load) {
i = 16;
}
Instance of Symbol 729 MovieClip "s9" in Symbol 734 MovieClip Frame 1
onClipEvent (load) {
mycolor = new Color(this.hit);
mycolor.setRGB(16776960);
i = 8;
}
Instance of Symbol 727 MovieClip "s10" in Symbol 734 MovieClip Frame 1
onClipEvent (load) {
i = 9;
}
Instance of Symbol 727 MovieClip "s11" in Symbol 734 MovieClip Frame 1
onClipEvent (load) {
i = 10;
}
Instance of Symbol 727 MovieClip "s12" in Symbol 734 MovieClip Frame 1
onClipEvent (load) {
i = 11;
}
Instance of Symbol 727 MovieClip "s1" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
i = 0;
}
Instance of Symbol 727 MovieClip "s2" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
i = 1;
}
Instance of Symbol 727 MovieClip "s3" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
i = 2;
}
Instance of Symbol 729 MovieClip "s4" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
mycolor = new Color(this.hit);
mycolor.setRGB(13369497);
i = 3;
}
Instance of Symbol 727 MovieClip "s5" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
i = 4;
}
Instance of Symbol 727 MovieClip "s6" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
i = 5;
}
Instance of Symbol 727 MovieClip "s7" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
i = 6;
}
Instance of Symbol 727 MovieClip "s8" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
i = 7;
}
Instance of Symbol 727 MovieClip "s19" in Symbol 736 MovieClip Frame 1
onClipEvent (load) {
i = 18;
}
Instance of Symbol 729 MovieClip "s18" in Symbol 736 MovieClip Frame 1
onClipEvent (load) {
mycolor = new Color(this.hit);
mycolor.setRGB(237);
i = 17;
}
Symbol 737 MovieClip Frame 1
stop();
Symbol 744 MovieClip Frame 1
stop();
Symbol 744 MovieClip Frame 2
if (count < 6) {
eval ("_root." + temp[count])._x = setx;
eval ("_root." + temp[count])._y = sety;
count++;
} else {
total = 0;
answer = new Array("pblue", "porange", "pred", "pgreen", "ppurple", "pyellow");
x = 0;
while (x < 6) {
trace("-----");
trace(temp[x]);
trace(answer[x]);
trace("------");
if (temp[x] == answer[x]) {
total++;
}
x++;
}
if (total == 6) {
x = 0;
while (x < 6) {
eval ("_root." + answer[x]).removeMovieClip();
x++;
}
_root.white.removeMovieClip();
_root.completed[9] = 1;
_root.updateshared();
_root.gotoAndStop(2);
} else {
trace("total: " + total);
count = 5;
gotoAndPlay (11);
}
}
Symbol 744 MovieClip Frame 10
gotoAndPlay (2);
Symbol 744 MovieClip Frame 25
if (count >= 0) {
eval ("_root." + temp[count])._x = eval ("_root." + temp[count]).myx;
eval ("_root." + temp[count])._y = eval ("_root." + temp[count]).myy;
count--;
} else {
gotoAndStop (1);
}
Symbol 744 MovieClip Frame 31
gotoAndPlay (25);
Symbol 762 MovieClip Frame 1
stop();
Symbol 762 MovieClip Frame 2
_root.currenttile = "circle";
Symbol 762 MovieClip Frame 134
_root.whichtile++;
eval ("_root." + _root.tileorder[_root.whichtile]).play();
_root.stopper._x = _root.stopper._x + 84.65;
Symbol 765 MovieClip Frame 1
stop();
Symbol 765 MovieClip Frame 2
_root.currenttile = "triangle";
Symbol 765 MovieClip Frame 134
_root.whichtile++;
eval ("_root." + _root.tileorder[_root.whichtile]).play();
_root.stopper._x = _root.stopper._x + 84.65;
Symbol 767 MovieClip Frame 1
stop();
Symbol 767 MovieClip Frame 2
_root.currenttile = "square";
Symbol 767 MovieClip Frame 134
_root.whichtile++;
eval ("_root." + _root.tileorder[_root.whichtile]).play();
_root.stopper._x = _root.stopper._x + 84.65;
Symbol 770 MovieClip Frame 1
stop();
Symbol 770 MovieClip Frame 2
_root.currenttile = "star";
Symbol 770 MovieClip Frame 134
_root.whichtile++;
eval ("_root." + _root.tileorder[_root.whichtile]).play();
_root.stopper._x = _root.stopper._x + 84.65;
Symbol 772 MovieClip Frame 1
stop();
Symbol 772 MovieClip Frame 2
_root.currenttile = "xmark";
Symbol 772 MovieClip Frame 134
_root.whichtile++;
eval ("_root." + _root.tileorder[_root.whichtile]).play();
_root.stopper._x = _root.stopper._x + 84.65;
Symbol 775 MovieClip Frame 1
stop();
Symbol 775 MovieClip Frame 2
_root.currenttile = "halfcircle";
Symbol 775 MovieClip Frame 134
_root.whichtile++;
eval ("_root." + _root.tileorder[_root.whichtile]).play();
_root.stopper._x = _root.stopper._x + 84.65;
Symbol 780 MovieClip Frame 1
stop();
Instance of Symbol 777 MovieClip in Symbol 780 MovieClip Frame 1
on (press) {
_parent.music.start(_parent.thepos);
_parent.gotoAndStop(2);
}
Symbol 782 MovieClip Frame 1
stop();
Symbol 782 MovieClip Frame 2
_root.tileorder = _root.tileorder.slice(0, 6);
_root.dyplay.gotoAndStop(1);
this._visible = false;
_root.playingsounds = false;
Symbol 793 MovieClip Frame 1
stop();
Instance of Symbol 777 MovieClip in Symbol 793 MovieClip Frame 1
on (press) {
if (_root.playingsounds == false) {
_parent.music.start(_parent.thepos);
_root.playingsounds2 = true;
_parent.gotoAndStop(2);
}
}
Symbol 793 MovieClip Frame 2
_parent.music.onSoundComplete = function () {
_root.soundbar._yscale = 0;
};
Instance of Symbol 792 MovieClip in Symbol 793 MovieClip Frame 2
on (press) {
_parent.thepos = _parent.music.position / 1000;
_parent.music.stop();
_root.playingsounds2 = false;
_parent.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.soundbar._yscale != 100) {
_root.soundbar._yscale = (_parent.music.position / _parent.music.duration) * 100;
} else {
_root.soundbar._yscale = 0;
_parent.thepos = 0;
_root.playingsounds2 = false;
_parent.gotoAndStop(1);
}
}
Instance of Symbol 779 MovieClip in Symbol 793 MovieClip Frame 2
on (press) {
_parent.music.stop();
_root.soundbar._yscale = 0;
_parent.thepos = 0;
_root.playingsounds2 = false;
_parent.gotoAndStop(1);
}