Combined Code
frame 1 {
stop();
}
frame 1 {
arrow_1.onPress = function () {
gotoAndPlay(2);
};
var menu_u = 1;
var PXis = 200;
var BPXis = -1000;
menu.onEnterFrame = function () {
menu._y = 450;
};
var _state = '';
var states = new Object();
var curState = new Object();
var state = '';
var backupState = 'default';
var lines = new Object();
var questions = new Object();
var reactions = new Object();
var helpbit1 = '';
var nextsize = 30;
lines[0] = {'_line': 'The door is slightly open...'};
lines[1] = {'_line': 'Planks loosly cover the broken windows. Is this place even safe...?'};
smoothAdjust = function (s1, s2, mu) {
if (_root[s1] != _root[s2]) {
if ((_root[s2] - _root[s1]) * mu > 1 || (_root[s2] - _root[s1]) * mu < -1) {
_root[s1] += Math.floor((_root[s2] - _root[s1]) * mu);
} else {
if ((_root[s2] - _root[s1]) * mu < 0) {
_root[s1] -= 1;
} else {
if ((_root[s2] - _root[s1]) * mu > 0) {
_root[s1] += 1;
}
}
}
}
};
superSmoothAdjust = function (s1, s2, mu) {
if (_root[s1] != _root[s2]) {
_root[s1] += (_root[s2] - _root[s1]) * mu;
}
};
circular = function (astart, a, aplus) {
if (_root[a + 'started'] != 8) {
_root[a] = astart;
_root[a + 'started'] = 8;
}
if (_root[a] < 6.283185307179586) {
_root[a] += aplus;
} else {
_root[a] -= 6.283185307179586;
}
};
distance = function (x1, x2, y1, y2) {
return Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
};
chatpanel.onEnterFrame = function () {
if (this.hitTest(_xmouse, _ymouse, true)) {
PXSB = -3;
} else {
PXSB = -200;
}
smoothAdjust('PXis', 'PXSB', 0.2);
this._x = PXis;
};
door.onPress = function () {
speech_b._alpha = 0;
menu._txt.text = lines[0]._line;
};
planks.onPress = function () {
speech_b._alpha = 0;
menu._txt.text = lines[1]._line;
};
}
// unknown tag 88 length 63
movieClip 6 {
}
movieClip 11 {
}
movieClip 14 {
}
movieClip 16 {
frame 48 {
gotoAndPlay(1);
}
}
movieClip 17 {
}
// unknown tag 88 length 282
movieClip 21 {
frame 1 {
_currentlabel = 'lowerleft';
}
frame 2 {
gotoAndPlay(_currentlabel);
}
}
movieClip 33 {
}
frame 2 {
stop();
}
frame 2 {
doorknob_open.onPress = function () {
speech_b._alpha = 0;
menu._txt.text = lines[2]._line;
gotoAndPlay(3);
};
var lines = new Object();
var questions = new Object();
var reactions = new Object();
var helpbit1 = '';
var nextsize = 30;
lines[0] = {'_line': 'What an odd glow... is it a candle?'};
lines[1] = {'_line': 'All this broken glass. How long has this place been abandonded?'};
lines[2] = {'_line': '!!! The door just slammed shut!'};
glow.onPress = function () {
speech_b._alpha = 0;
menu._txt.text = lines[0]._line;
};
b_glass_door.onPress = function () {
speech_b._alpha = 0;
menu._txt.text = lines[1]._line;
};
}
movieClip 42 {
}
movieClip 45 {
}
movieClip 47 {
}
frame 3 {
stop();
}
frame 3 {
peek.onPress = function () {
gotoAndPlay(4);
};
var lines = new Object();
var questions = new Object();
var reactions = new Object();
var helpbit1 = '';
var nextsize = 30;
lines[0] = {'_line': 'There\'s enough space to look through. Maybe I should try it...'};
lines[1] = {'_line': 'It wont budge...'};
lines[2] = {'_line': 'The light disappeared... how strange.'};
door_closed_demo.broken_glass_closed.onPress = function () {
speech_b._alpha = 0;
menu._txt.text = lines[0]._line;
};
door_closed_demo.doorknob.onPress = function () {
speech_b._alpha = 0;
menu._txt.text = lines[1]._line;
};
door_closed_demo.no_light.onPress = function () {
speech_b._alpha = 0;
menu._txt.text = lines[2]._line;
};
}
movieClip 50 {
}
movieClip 52 {
}
movieClip 54 {
}
movieClip 55 {
}
movieClip 57 {
}
frame 4 {
stop();
}
frame 4 {
function setState(str) {
if (state != str) {
statetimer = 35 + Math.floor(speech_b._txt.length * 2.2);
curState.state = str;
stat = str;
for (var v2 in states[str]) {
curState[v2] = states[str][v2];
}
beth.head.eyes.gotoAndPlay(curState.eyes);
beth.head.mouth.gotoAndPlay(curState.mouth);
}
}
peek.onPress = function () {
gotoAndPlay(4);
};
var _state = '';
var states = new Object();
var curState = new Object();
var state = '';
var backupState = 'default';
var lines = new Object();
var questions = new Object();
var reactions = new Object();
var helpbit1 = '';
var nextsize = 30;
lines[0] = {'_line': 'Dang, there\'s another door! What\'s behind it? *The aroma of rotting flesh wafts closer...*'};
lines[1] = {'_line': 'pillar. #2 - write dialog. Cracks. Slime? '};
lines[2] = {'_line': 'Got to be careful I don\'t hurt myself! I\'m sure someone out there would like my blood...'};
lines[3] = {'_expression': 'happy_demo', '_line': '"Hehe, hi!"'};
lines[4] = {'_expression': 'default', '_line': '"I\'m dead, so I guess someone\'s got to get fun out of them these days."'};
lines[5] = {'_expression': 'smile_demo', '_line': '"That tickles!"'};
lines[6] = {'_expression': 'happy_demo', '_line': '"Isn\'t my skirt cute?"'};
lines[7] = {'_expression': 'smile_demo', '_line': '"Hey, you found my secret!" Congrats!"'};
states.default = {'eyes': 'default', 'mouth': 'default'};
states.happy_demo = {'eyes': 'happy_demo', 'mouth': 'default'};
states.smile_demo = {'eyes': 'happy_demo', 'mouth': 'smile_demo'};
speech_b._alpha = 0;
speech_b.onPress = function () {
if (speechtimer > 10) {
speechtimer = 10;
}
};
demo_door.onPress = function () {
menu._txt.text = lines[0]._line;
};
pillar.onPress = function () {
menu._txt.text = lines[1]._line;
};
demo_glass.onPress = function () {
menu._txt.text = lines[2]._line;
};
beth.head.onPress = function () {
menu._txt_b.text = lines[3]._line;
};
beth.clothes.jumper.j_breasts.onPress = function () {
menu._txt_b.text = lines[4]._line;
};
beth.clothes.jumper.belly.onPress = function () {
menu._txt_b.text = lines[5]._line;
};
beth.clothes.skirt.onPress = function () {
menu._txt_b.text = lines[6]._line;
};
n_button.onPress = function () {
beth.clothes._alpha = 0;
menu._txt_b.text = lines[7]._line;
};
c_button.onPress = function () {
beth.clothes._alpha = 100;
};
}
movieClip 59 {
}
movieClip 62 {
}
movieClip 64 {
}
movieClip 66 {
}
movieClip 74 {
frame 1 {
stop();
}
}
movieClip 75 {
}
movieClip 79 {
}
movieClip 80 {
}
movieClip 83 {
}
movieClip 85 {
}
movieClip 86 {
}
movieClip 88 {
}
movieClip 94 {
frame 1 {
stop();
}
}
movieClip 95 {
}
movieClip 96 {
}
movieClip 100 {
frame 1 {
_currentlabel = 'default';
}
frame 2 {
gotoAndPlay(_currentlabel);
}
frame 3 {
_currentlabel = 'smile_demo';
}
frame 4 {
gotoAndPlay(_currentlabel);
}
}
movieClip 106 {
frame 1 {
_currentlabel = 'default';
}
frame 2 {
gotoAndPlay(_currentlabel);
}
frame 3 {
_currentlabel = 'happy_demo';
stop();
}
frame 4 {
gotoAndPlay(_currentlabel);
}
}
movieClip 107 {
}
movieClip 108 {
frame 48 {
gotoAndPlay(1);
}
}
movieClip 111 {
}