Combined Code
frame 1 {
stop();
var listener2 = new Object();
listener2.onKeyDown = function () {
if (Key.isDown(39)) {
Key.removeListener(listener2);
_root.gotoAndStop(2);
}
};
onEnterFrame = function () {
var v2 = _root.getBytesLoaded() / _root.getBytesTotal();
loadingBar._width = 300 * v2;
if (v2 == 1 && _currentframe == 1) {
tbComplete._visible = true;
Key.addListener(listener2);
}
};
tbComplete._visible = false;
}
movieClip 156 {
}
movieClip 158 {
}
frame 2 {
function updateFontSize(tField, defaultSize) {
tFormat.size = defaultSize;
tField.setTextFormat(tFormat);
trace(tField.textHeight);
var v1 = defaultSize;
for (;;) {
if (!((tField.textWidth > 800 || tField.textHeight > 90) && v1 > 12)) break;
v1 -= 1;
tFormat.size = v1;
tField.setTextFormat(tFormat);
trace(v1);
}
tbHeight = tField.textHeight + 5;
}
var listener = new Object();
var sndmc = this.createEmptyMovieClip('soundholder', _root.getNextHighestDepth());
var sndmc2 = this.createEmptyMovieClip('soundholder2', _root.getNextHighestDepth());
var sndmc3 = this.createEmptyMovieClip('soundholder3', _root.getNextHighestDepth());
var song1 = new Sound(sndmc);
var song2 = new Sound(sndmc2);
var voice = new Sound(sndmc3);
var currentSong = '';
var prevSong = '';
var songID = 2;
var crossfade = false;
var maxVolume = 15;
var moving = false;
var textType = 0;
var tFormat = new TextFormat();
var tbHeight = 90;
var va_change = false;
sceneViewer._visible = false;
scroller.onPress = function () {
moving = true;
};
scroller.onRelease = function () {
moving = false;
};
onMouseUp = function () {
moving = false;
};
trace('Test');
scene_selection.onRelease = function () {
if (sceneViewer._visible == false) {
sceneViewer._visible = true;
} else {
sceneViewer._visible = false;
}
};
listener.onKeyDown = function () {
if (Key.isDown(39)) {
if (foreground._currentframe != 130) {
if (textType == 0) {
foreground.tbText.text += textToScroll;
scrolling = false;
textType = 1;
foreground.tbText.setTextFormat(tFormat);
} else {
if (background.fade == false) {
foreground.tbText._height = 90;
foreground.loop.stop();
foreground.nextFrame();
updateFontSize(foreground.tbText, 20);
_root.background.nextFrame();
scrolling = true;
textToScroll = foreground.tbText.text;
foreground.tbText.text = '';
textType = 0;
va_change = true;
} else {
if (fadeWindow._currentframe == 1) {
fadeWindow.gotoAndPlay(2);
}
}
}
}
}
if (Key.isDown(37)) {
if (foreground._currentframe != 1) {
if (_root.background.left_fade == false) {
foreground.tbText._height = 90;
foreground.loop.stop();
foreground.prevFrame();
updateFontSize(foreground.tbText, 20);
foreground.portraits.prevFrame();
foreground.leftPortraits.prevFrame();
_root.background.prevFrame();
scrolling = true;
textToScroll = foreground.tbText.text;
foreground.tbText.text = '';
va_change = true;
} else {
if (leftFadeWindow._currentframe == 1) {
leftFadeWindow.gotoAndPlay(2);
}
}
}
}
};
move_image = function (player, ID) {
if (ID == 0) {
sliding[ID] = 1;
foreground.leftPortraits._x = -1 * foreground.leftPortraits._width + foreground._x;
} else {
sliding[ID] = -1;
_root.foreground.portraits._x = 800 - _root.foreground._x;
}
};
scrollText = function () {
if (textToScroll.length > 0) {
foreground.tbText.text += textToScroll.substr(0, 2);
textToScroll = textToScroll.substr(2, textToScroll.length);
foreground.tbText.setTextFormat(tFormat);
} else {
scrolling = false;
textType = 1;
foreground.tbText.setTextFormat(tFormat);
}
};
runCrossfade = function () {
if (songID == 2) {
if (fadeCounter > 0) {
song1.setVolume(fadeCounter);
song2.setVolume(maxVolume - fadeCounter);
fadeCounter -= 4;
} else {
crossfade = false;
song1.stop(prevSong);
}
} else {
if (fadeCounter > 0) {
song2.setVolume(fadeCounter);
song1.setVolume(maxVolume - fadeCounter);
fadeCounter -= 4;
} else {
crossfade = false;
song2.stop(prevSong);
}
}
};
onEnterFrame = function () {
foreground.tbText._height = tbHeight;
foreground.tbText.multiline = true;
foreground.tbText.backgroundColor = '0x000000';
foreground.tbText.textColor = '0xFFFFFF';
foreground.tbText.border = true;
foreground.tbText.background = true;
foreground.tbText._width = 800;
if (foreground.songTrack != currentSong) {
prevSong = currentSong;
if (foreground.crossfade == true) {
crossfade = true;
fadeCounter = maxVolume;
if (songID == 1) {
song2.stop();
song2.attachSound(foreground.songTrack);
song2.start(0, 99);
song2.setVolume(0);
currentSong = foreground.songTrack;
songID = 2;
} else {
song1.stop();
song1.attachSound(foreground.songTrack);
song1.start(0, 99);
song1.setVolume(0);
currentSong = foreground.songTrack;
songID = 1;
}
} else {
crossfade = false;
if (songID == 2) {
song2.stop(currentSong);
song2.attachSound(foreground.songTrack);
song2.start(0, 99);
currentSong = foreground.songTrack;
} else {
song1.stop(currentSong);
song1.attachSound(foreground.songTrack);
song1.start(0, 99);
currentSong = foreground.songTrack;
}
}
}
if (moving == true) {
scroller._x = _xmouse;
if (scroller._x > scrollBar._x + scrollBar._width) {
scroller._x = scrollBar._x + scrollBar._width;
}
if (scroller._x < scrollBar._x) {
scroller._x = scrollBar._x;
}
var v1 = (scroller._x - scrollBar._x) / scrollBar._width;
song1.setVolume(maxVolume * v1);
song2.setVolume(maxVolume * v1);
}
if (scrolling == true) {
scrollText();
}
if (crossfade == true) {
runCrossfade();
}
if (va_change == true && foreground.va_lines != '') {
voice.stop();
voice.attachSound(foreground.va_lines);
voice.start(0, 1);
va_change = false;
}
};
scrolling = true;
textToScroll = foreground.tbText.text;
updateFontSize(foreground.tbText, 30);
foreground.tbText.text = '';
Key.addListener(listener);
voice.attachSound('30fresnel');
song2.setVolume(25);
voice.start(0, 1);
stop();
}
movieClip 163 {
frame 1 {
fade = false;
left_fade = false;
}
frame 1 {
stop();
}
}
// unknown tag 88 length 63
movieClip 207 {
frame 1 {
onEnterFrame = function () {
_rotation = _rotation + 25;
};
}
}
movieClip 214 {
}
movieClip 220 {
}
movieClip 221 {
frame 144 {
stop();
}
}
movieClip 509 {
frame 96 {
stop();
}
}
movieClip 513 {
frame 1 {
stop();
songTrack = 'song1';
crossfade = true;
}
frame 2 {
va_lines = '29gp';
}
frame 3 {
va_lines = '44zaru';
}
frame 4 {
va_lines = '30gp';
}
frame 5 {
va_lines = '63mike';
}
frame 6 {
va_lines = '64mike';
}
frame 7 {
va_lines = '12maple';
}
frame 8 {
va_lines = '65mike';
}
frame 9 {
va_lines = '13maple';
}
frame 10 {
va_lines = '66mike';
}
frame 11 {
va_lines = '14maple';
}
frame 12 {
va_lines = '67mike';
}
frame 13 {
va_lines = '15maple';
}
frame 14 {
va_lines = '68mike';
}
frame 15 {
va_lines = '16maple';
}
frame 16 {
va_lines = '31fresnel';
}
frame 17 {
va_lines = '17maple';
}
frame 18 {
va_lines = '18maple';
}
frame 19 {
va_lines = '32fresnel';
}
frame 20 {
va_lines = '19maple';
}
frame 21 {
va_lines = '33fresnel';
}
frame 22 {
va_lines = '20maple';
}
frame 23 {
va_lines = '34fresnel';
}
frame 24 {
va_lines = '21maple';
}
frame 25 {
va_lines = '35fresnel';
}
frame 26 {
va_lines = '';
}
frame 27 {
va_lines = '31gp';
}
frame 28 {
va_lines = '23dmitri';
}
frame 29 {
va_lines = '32gp';
}
frame 30 {
va_lines = '24dmitri';
}
frame 31 {
va_lines = '33gp';
}
frame 32 {
va_lines = '25dmitri';
}
frame 33 {
va_lines = '34gp';
}
frame 34 {
va_lines = '35gp';
}
frame 35 {
va_lines = '36gp';
}
frame 36 {
va_lines = '26dmitri';
}
frame 37 {
va_lines = '37gp';
}
frame 38 {
va_lines = '27dmitri';
}
frame 39 {
va_lines = '38gp';
}
frame 40 {
va_lines = '28dmitri';
}
frame 41 {
va_lines = '39gp';
}
frame 42 {
va_lines = '29dmitri';
}
frame 43 {
va_lines = '40gp';
}
frame 44 {
va_lines = '30dmitri';
}
frame 45 {
va_lines = '41gp';
}
frame 46 {
va_lines = '13rhodes';
}
frame 47 {
va_lines = '21sandy';
}
frame 48 {
va_lines = '14rhodes';
}
frame 49 {
va_lines = '22sandy';
}
frame 50 {
va_lines = '24sandy';
}
frame 51 {
va_lines = '15rhodes';
}
frame 52 {
va_lines = '25sandy';
}
frame 53 {
va_lines = '16rhodes';
}
frame 54 {
va_lines = '26sandy';
}
frame 55 {
va_lines = '17rhodes';
}
frame 56 {
va_lines = '27sandy';
}
frame 57 {
va_lines = '18rhodes';
}
frame 58 {
va_lines = '28sandy';
}
frame 59 {
va_lines = '19rhodes';
}
frame 60 {
va_lines = '29sandy';
}
frame 61 {
va_lines = '20rhodes';
}
frame 62 {
va_lines = '45zaru';
}
frame 63 {
va_lines = '32calla';
}
frame 64 {
va_lines = '46zaru';
}
frame 65 {
va_lines = '33calla';
}
frame 66 {
va_lines = '47zaru';
}
frame 67 {
va_lines = '34calla';
}
frame 68 {
va_lines = '48zaru';
}
frame 69 {
va_lines = '35calla';
}
frame 70 {
va_lines = '36calla';
}
frame 71 {
va_lines = '49zaru';
}
frame 72 {
va_lines = '37calla';
}
frame 73 {
va_lines = '50zaru';
}
frame 74 {
va_lines = '38calla';
}
frame 75 {
va_lines = '51zaru';
}
frame 76 {
va_lines = '39calla';
}
frame 77 {
va_lines = '52zaru';
}
frame 78 {
va_lines = '53zaru';
}
frame 79 {
va_lines = '40calla';
}
frame 80 {
va_lines = '54zaru';
}
frame 81 {
va_lines = '41calla';
}
frame 82 {
va_lines = '55zaru';
}
frame 83 {
va_lines = '42calla';
}
frame 84 {
va_lines = '56zaru';
}
frame 85 {
va_lines = '43calla';
}
frame 86 {
va_lines = '03anana';
}
frame 87 {
va_lines = '01twigs';
}
frame 88 {
va_lines = '04anana';
}
frame 89 {
va_lines = '02twigs';
}
frame 90 {
va_lines = '05anana';
}
frame 91 {
va_lines = '03twigs';
}
frame 92 {
va_lines = '06anana';
}
frame 93 {
va_lines = '04twigs';
}
frame 94 {
va_lines = '07anana';
}
frame 95 {
va_lines = '06lexy';
}
frame 96 {
va_lines = '08anana';
}
frame 97 {
va_lines = '23pk';
}
frame 98 {
va_lines = '05twigs';
}
frame 99 {
va_lines = '24pk';
}
frame 100 {
va_lines = '25pk';
}
frame 101 {
va_lines = '26pk';
}
frame 102 {
va_lines = '06twigs';
}
frame 103 {
va_lines = '07twigs';
}
frame 104 {
va_lines = '27pk';
}
frame 105 {
va_lines = '08twigs';
}
frame 106 {
va_lines = '28pk';
}
frame 107 {
va_lines = '';
}
frame 108 {
va_lines = '09anana';
}
frame 109 {
va_lines = '09twigs';
}
frame 110 {
va_lines = '29pk';
}
frame 111 {
va_lines = '21shroom';
}
frame 112 {
va_lines = '30pk';
}
frame 113 {
va_lines = '22shroom';
}
frame 114 {
va_lines = '31pk';
}
frame 115 {
va_lines = '23shroom';
}
frame 116 {
va_lines = '24shroom';
}
frame 117 {
va_lines = '';
}
frame 118 {
va_lines = '25shroom';
}
frame 119 {
va_lines = '32pk';
}
frame 120 {
va_lines = '26shroom';
}
frame 121 {
va_lines = '27shroom';
}
frame 122 {
va_lines = '33pk';
}
frame 123 {
va_lines = '28shroom';
}
frame 124 {
va_lines = '';
}
frame 125 {
va_lines = '29shroom';
}
frame 126 {
va_lines = '34pk';
}
frame 127 {
va_lines = '30shroom';
}
frame 128 {
va_lines = '31shroom';
}
frame 129 {
va_lines = '';
}
frame 130 {
va_lines = '07sorbet';
}
}