Frame 1
theMessage = "\tCode is the key, yet the message is locked. Set the key's key and put this all into motion. The key's instance name is key, you take it from there.";
Frame 2
gotoAndStop ("actions");
Frame 3
theMessage = " \"code\" is the key, yet the message is locked. Set the key's key and put this all into motion. The key's instance name is key, you take it from there.";
stop();
Instance of Symbol 7 MovieClip "handler" in Frame 3
onClipEvent (load) {
trueMessage = " The farther regions of the northern hallway of the blue building. That is where it shall rest, remember this for a later date.";
if (_root.key.text == "code") {
var typingArray = new Array();
messageBox.lockedMessage = "";
_root.theMessage = trueMessage;
arrayLength = _root.theMessage.length;
typingArray.length = arrayLength;
i = 0;
while (i < arrayLength) {
typingArray[i] = _root.theMessage.charAt(i);
i++;
}
} else {
var typingArray = new Array();
messageBox.lockedMessage = "";
arrayLength = _root.theMessage.length;
typingArray.length = arrayLength;
i = 0;
while (i < arrayLength) {
typingArray[i] = _root.theMessage.charAt(i);
i++;
}
}
}
Instance of Symbol 9 MovieClip "messageBox" in Frame 3
onClipEvent (load) {
var i = 0;
var endI = _root.theMessage.length;
var writeArray = new Array();
j = 0;
while (j < endI) {
writeArray = _root.handler.typingArray;
j++;
}
_root.hurp.text = writeArray;
play();
}
Symbol 4 Button
on (press) {
gotoAndPlay ("action");
}
Symbol 9 MovieClip Frame 1
if (i < (endI - 1)) {
i = i + 1;
play();
} else {
stop();
}
Symbol 9 MovieClip Frame 3
lockedMessage.text = lockedMessage.text + writeArray[i];
gotoAndPlay ("start");
Symbol 10 Button
on (press) {
gotoAndStop ("action");
}