Combined Code
frame 1 {
function toggleFullScreen() {
if (Stage.displayState == 'normal') {
Stage.displayState = 'fullScreen';
fs.gotoAndStop(2);
} else {
Stage.displayState = 'normal';
fs.gotoAndStop(1);
}
}
function playvoice() {
if (ve == 0) {
if (_currentframe > 12 && _currentframe < 16) {
currentvoice = my_sound;
currentvoice.start(1, 10);
}
if (_currentframe > 15 && _currentframe < 23) {
currentvoice = my_sound2;
currentvoice.start(1, 10);
}
if (_currentframe == 23) {
my_sound3.start(1, 10);
}
if (_currentframe > 23 && _currentframe < 36) {
currentvoice = my_sound4;
currentvoice.start(1, 10);
}
if (_currentframe > 35 && _currentframe < 55) {
currentvoice = my_sound5;
currentvoice.start(1, 10);
}
}
if (ve == 1) {
currentvoice.stop();
}
}
function playmusic() {
if (me == 0) {
_root.my_sound6.start(1, 10);
}
if (me == 1) {
_root.my_sound6.stop();
}
}
function changevoice() {
if (ve == 0 && pf < _currentframe) {
currentvoice.stop();
if (_currentframe > 12 && _currentframe < 16) {
currentvoice = my_sound;
currentvoice.start(1, 10);
}
if (_currentframe > 15 && _currentframe < 23) {
currentvoice = my_sound2;
currentvoice.start(1, 10);
}
if (_currentframe > 23 && _currentframe < 36) {
currentvoice = my_sound4;
currentvoice.start(1, 10);
}
if (_currentframe > 35 && _currentframe < 55) {
currentvoice = my_sound5;
currentvoice.start(1, 10);
}
}
if (ve == 0) {
if (_currentframe == 23) {
currentvoice.stop();
currentvoice = my_sound3;
currentvoice.start(1, 10);
}
}
preframe();
}
function changevoice2() {
if (ve == 0 && pf > _currentframe) {
currentvoice.stop();
if (_currentframe > 12 && _currentframe < 16) {
my_sound.start(1, 10);
}
if (_currentframe > 15 && _currentframe < 23) {
my_sound2.start(1, 10);
}
if (_currentframe == 23) {
my_sound3.start(1, 10);
}
if (_currentframe > 23 && _currentframe < 36) {
my_sound4.start(1, 10);
}
if (_currentframe > 35 && _currentframe < 55) {
my_sound5.start(1, 10);
}
}
preframe();
}
function tovoice() {
if (ve == 0 or ve == 1) {
ve += 1;
tv.gotoAndStop(2);
}
if (ve == 2) {
ve = 0;
tv.gotoAndStop(1);
}
}
function tomusic() {
if (me == 0 or me == 1) {
me += 1;
tm.gotoAndStop(2);
}
if (me == 2) {
me = 0;
tm.gotoAndStop(1);
}
}
function preframe() {
pf = _currentframe;
}
var ve = 0;
var pf = 1;
var me = 0;
var resizeListener = new Object();
resizeListener.onResize = function () {
toggleFullScreenButton._x = Stage.width / 2;
toggleFullScreenButton._y = Stage.height / 2;
};
Stage.addListener(resizeListener);
stopAllSounds();
var my_sound = new Sound(this);
my_sound.attachSound('final1.mp3');
var my_sound2 = new Sound(this);
my_sound2.attachSound('final2.mp3');
var my_sound3 = new Sound(this);
my_sound3.attachSound('final3.mp3');
var my_sound4 = new Sound(this);
my_sound4.attachSound('final4.mp3');
var my_sound5 = new Sound(this);
my_sound5.attachSound('final5.mp3');
var my_sound6 = new Sound(mc);
my_sound6.attachSound('bgmusic.mp3');
var currentvoice = new Sound(this);
playmusic();
stop();
}
// unknown tag 88 length 26
movieClip 17 {
}
button 18 {
on (press) {
toggleFullScreen();
}
}
movieClip 26 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 27 {
on (press) {
tovoice();
playvoice();
}
}
movieClip 32 {
}
button 33 {
on (press) {
tomusic();
playmusic();
}
}
movieClip 36 {
}
button 37 {
on (press) {
gotoAndStop(2);
}
}
movieClip 39 {
}
movieClip 44 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 48 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 53 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
// unknown tag 88 length 77
movieClip 59 {
}
button 60 {
on (press) {
nextFrame();
stop();
}
}
button 61 {
on (press) {
prevFrame();
stop();
}
}
button 63 {
on (press) {
nextFrame();
}
}
frame 12 {
preframe();
currentvoice.stop();
}
frame 13 {
changevoice();
}
movieClip 85 {
}
button 86 {
on (press) {
tovoice();
playvoice();
}
}
frame 14 {
preframe();
}
movieClip 89 {
}
frame 15 {
changevoice2();
}
movieClip 91 {
}
frame 16 {
changevoice();
}
frame 17 {
preframe();
}
movieClip 101 {
}
movieClip 103 {
}
frame 22 {
changevoice2();
}
movieClip 105 {
}
frame 23 {
changevoice();
}
movieClip 107 {
}
frame 24 {
changevoice();
}
frame 25 {
preframe();
}
movieClip 127 {
}
movieClip 129 {
}
frame 35 {
changevoice2();
}
movieClip 131 {
}
frame 36 {
changevoice();
}
frame 37 {
preframe();
}
movieClip 139 {
}
movieClip 141 {
}
movieClip 143 {
}
movieClip 145 {
}
movieClip 172 {
}
button 173 {
on (press) {
gotoAndStop(55);
}
}
button 174 {
on (press) {
tovoice();
playvoice();
}
}
frame 55 {
currentvoice.stop();
}