Frame 1
var lbytes = 0;
var tbytes = 0;
var percentL = 0;
var count = 0;
Frame 3
lbytes = _root.getBytesLoaded();
tbytes = _root.getBytesTotal();
percentL = Math.floor((lbytes / tbytes) * 100);
_root.bar_mc._xscale = percentL;
if ((lbytes >= tbytes) && (tbytes > 0)) {
if (count >= 30) {
gotoAndPlay (5);
} else {
count = count + 1;
gotoAndPlay (2);
}
} else {
gotoAndPlay (2);
}
Frame 6
var preloader_length = 5;
var score = 0;
var life_number = 0;
_root.level_light1.gotoAndStop(1);
_root.level_light2.gotoAndStop(1);
_root.level_light3.gotoAndStop(1);
_quality = "MEDIUM";
_root.createEmptyMovieClip("intro_bass_mc", 1001);
var intro_bass = new Sound(intro_bass_mc);
_root.createEmptyMovieClip("intro_bells_mc", 1002);
var intro_bells = new Sound(intro_bells_mc);
_root.createEmptyMovieClip("intro_drum_mc", 1003);
var intro_drum = new Sound(intro_drum_mc);
_root.createEmptyMovieClip("intro_echo_mc", 1004);
var intro_echo = new Sound(intro_echo_mc);
_root.createEmptyMovieClip("intro_synth_mc", 1005);
var intro_synth = new Sound(intro_synth_mc);
_root.createEmptyMovieClip("intro_startdrum_mc", 1006);
var intro_startdrum = new Sound(intro_startdrum_mc);
_root.createEmptyMovieClip("intro_synthecho_mc", 1007);
var intro_synthecho = new Sound(intro_synthecho_mc);
_root.createEmptyMovieClip("digital_noise_mc", 1008);
var digital_noise = new Sound(digital_noise_mc);
_root.createEmptyMovieClip("song1_bass_mc", 1009);
var song1_bass = new Sound(song1_bass_mc);
_root.createEmptyMovieClip("song1_bells_mc", 1010);
var song1_bells = new Sound(song1_bells_mc);
_root.createEmptyMovieClip("song1_chords_mc", 1011);
var song1_chords = new Sound(song1_chords_mc);
_root.createEmptyMovieClip("song1_drums_mc", 1012);
var song1_drums = new Sound(song1_drums_mc);
_root.createEmptyMovieClip("song1_synth_mc", 1013);
var song1_synth = new Sound(song1_synth_mc);
_root.createEmptyMovieClip("point_mc", 1014);
var point = new Sound(point_mc);
_root.createEmptyMovieClip("boss3_first_mc", 1015);
var boss3_first = new Sound(boss3_first_mc);
_root.createEmptyMovieClip("boss3_second_mc", 1016);
var boss3_second = new Sound(boss3_second_mc);
_root.createEmptyMovieClip("blowing_up_mc", 1017);
var blowing_up = new Sound(blowing_up_mc);
_root.createEmptyMovieClip("level_end_mc", 1018);
var level_end = new Sound(level_end_mc);
_root.createEmptyMovieClip("game_over_mc", 1019);
var game_over = new Sound(game_over_mc);
_root.createEmptyMovieClip("song3_bass_mc", 1020);
var song3_bass = new Sound(song3_bass_mc);
_root.createEmptyMovieClip("song3_bells_mc", 1021);
var song3_bells = new Sound(song3_bells_mc);
_root.createEmptyMovieClip("song3_chiptune_mc", 1022);
var song3_chiptune = new Sound(song3_chiptune_mc);
_root.createEmptyMovieClip("song3_chords_mc", 1023);
var song3_chords = new Sound(song3_chords_mc);
_root.createEmptyMovieClip("song3_drums_mc", 1024);
var song3_drums = new Sound(song3_drums_mc);
_root.createEmptyMovieClip("boss2_first_mc", 1025);
var boss2_first = new Sound(boss2_first_mc);
_root.createEmptyMovieClip("boss2_second_mc", 1026);
var boss2_second = new Sound(boss2_second_mc);
_root.createEmptyMovieClip("song2_arp_mc", 1027);
var song2_arp = new Sound(song2_arp_mc);
_root.createEmptyMovieClip("song2_bass_mc", 1028);
var song2_bass = new Sound(song2_bass_mc);
_root.createEmptyMovieClip("song2_drums_mc", 1029);
var song2_drums = new Sound(song2_drums_mc);
_root.createEmptyMovieClip("song2_pluck_mc", 1030);
var song2_pluck = new Sound(song2_pluck_mc);
_root.createEmptyMovieClip("song2_synth_mc", 1031);
var song2_synth = new Sound(song2_synth_mc);
_root.createEmptyMovieClip("boss1_first_mc", 1032);
var boss1_first = new Sound(boss1_first_mc);
_root.createEmptyMovieClip("boss1_second_mc", 1033);
var boss1_second = new Sound(boss1_second_mc);
_root.createEmptyMovieClip("cong_mc", 1034);
var cong = new Sound(cong_mc);
digital_noise.attachSound("digital_noise_sound");
point.attachSound("point_adding_sound");
intro_bass.attachSound("intro_bass_sound");
intro_bells.attachSound("intro_bells_sound");
intro_drum.attachSound("intro_drum_sound");
intro_echo.attachSound("intro_echo_sound");
intro_startdrum.attachSound("intro_startdrum_sound");
intro_synth.attachSound("intro_synth_sound");
intro_synthecho.attachSound("intro_synthecho_sound");
song1_bass.attachSound("song1_bass_sound");
song1_bells.attachSound("song1_bells_sound");
song1_chords.attachSound("song1_chords_sound");
song1_synth.attachSound("song1_synth_sound");
song1_drums.attachSound("song1_drums_sound");
boss3_first.attachSound("boss3_first_sound");
boss3_second.attachSound("boss3_second_sound");
song3_bass.attachSound("song3_bass_sound");
song3_bells.attachSound("song3_bells_sound");
song3_chiptune.attachSound("song3_chiptune_sound");
song3_chords.attachSound("song3_chords_sound");
song3_drums.attachSound("song3_drums_sound");
boss2_first.attachSound("boss2_first_sound");
boss2_second.attachSound("boss2_second_sound");
song2_arp.attachSound("song2_arp_sound");
song2_bass.attachSound("song2_bass_sound");
song2_drums.attachSound("song2_drums_sound");
song2_pluck.attachSound("song2_pluck_sound");
song2_synth.attachSound("song2_synth_sound");
boss1_first.attachSound("boss1_first_sound");
boss1_second.attachSound("boss1_second_sound");
blowing_up.attachSound("blowing_up_sound");
level_end.attachSound("level_end_sound");
game_over.attachSound("game_over_sound");
cong.attachSound("cong_sound");
song1_bass.amplitude = [49, 42, 40, 39, 37, 35, 37, 39, 35, 32, 31, 29, 28, 35, 44, 43, 41, 39, 38, 36, 34, 32, 32, 34, 38, 41, 42, 45, 48, 45, 41, 28, 10, 3, 18, 35, 37, 38, 37, 35, 33, 39, 47, 46, 44, 43, 40, 37, 41, 45, 43, 42, 43, 43, 43, 43, 43, 42, 40, 39, 39, 37, 41, 46, 44, 41, 38, 35, 33, 38, 41, 38, 34, 31, 31, 33, 40, 43, 39, 38, 40, 41, 40, 45, 49, 45, 44, 44, 42, 40, 38, 36, 34, 33, 33, 34, 35, 39, 43, 41, 39, 38, 36, 35, 34, 34, 33, 32, 31, 30, 28, 35, 43, 44, 42, 40, 38, 36, 38, 41, 38, 34, 31, 30, 32, 38, 45, 44, 39, 37, 36, 35, 39, 41, 33, 18, 6, 2, 1, 20, 43, 36, 17, 5, 1, 0, 16, 37, 41, 39, 38, 37, 37, 40, 39, 33, 31, 30, 30, 30, 37, 42, 39, 37, 36, 36, 36, 40, 43, 41, 40, 40, 41, 41, 46, 51, 49, 49, 46, 43, 40, 45, 49, 46, 44, 45, 44, 44, 48, 48, 43, 42, 42, 40, 36, 40, 46, 45, 42, 39, 37, 36, 37, 38, 39, 40, 40, 40, 39, 42, 43, 33, 16, 5, 2, 1, 18, 37, 39, 39, 39, 38, 37, 37];
song1_bells.amplitude = [9, 7, 7, 6, 6, 5, 7, 9, 10, 12, 14, 13, 12, 11, 11, 11, 11, 10, 8, 7, 8, 9, 9, 7, 6, 5, 5, 6, 8, 9, 9, 8, 7, 6, 7, 9, 9, 9, 10, 11, 12, 11, 10, 9, 9, 8, 8, 7, 7, 7, 7, 7, 6, 6, 5, 6, 8, 9, 9, 10, 8, 7, 8, 9, 10, 11, 11, 12, 12, 11, 9, 7, 7, 7, 7, 6, 5, 5, 5, 5, 4, 4, 5, 7, 9, 10, 10, 9, 7, 6, 7, 10, 11, 10, 10, 10, 9, 9, 7, 5, 5, 5, 5, 5, 5, 4, 4, 4, 3, 3, 3, 4, 6, 7, 6, 4, 3, 3, 3, 5, 6, 7, 9, 9, 9, 7, 5, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 7, 7, 6, 5, 4, 6, 9, 10, 10, 10, 10, 10, 8, 8, 7, 6, 5, 4, 4, 4, 4, 5, 5, 5, 4, 4, 6, 9, 9, 9, 8, 6, 6, 8, 10, 10, 11, 10, 9, 9, 10, 8, 7, 7, 7, 6, 6, 5, 5, 5, 6, 5, 5, 5, 7, 8, 8, 8, 7, 7, 7, 7, 9, 11, 11, 11, 11, 12, 11, 8, 7, 7, 7, 6, 5, 6, 6, 4, 5, 4, 4, 4, 4];
song1_chords.amplitude = [25, 22, 19, 13, 7, 4, 5, 8, 8, 7, 5, 3, 2, 3, 5, 5, 5, 4, 2, 1, 4, 8, 8, 8, 6, 3, 2, 10, 21, 22, 20, 14, 7, 4, 6, 8, 8, 7, 5, 3, 3, 4, 6, 6, 5, 4, 2, 2, 5, 9, 11, 10, 7, 4, 3, 10, 21, 22, 20, 14, 7, 5, 7, 8, 8, 7, 6, 3, 2, 3, 5, 5, 5, 4, 3, 2, 5, 10, 11, 10, 7, 4, 2, 10, 19, 22, 21, 16, 9, 5, 6, 8, 9, 8, 6, 4, 3, 4, 6, 6, 6, 4, 3, 2, 6, 12, 13, 12, 9, 5, 3, 9, 18, 21, 19, 14, 7, 4, 6, 8, 8, 7, 6, 4, 3, 4, 5, 5, 5, 4, 3, 2, 4, 8, 9, 10, 7, 4, 3, 9, 18, 22, 20, 14, 7, 4, 5, 8, 8, 7, 5, 3, 2, 3, 5, 5, 4, 3, 2, 1, 5, 11, 12, 13, 10, 5, 3, 10, 21, 23, 20, 15, 8, 5, 6, 9, 9, 8, 6, 5, 3, 4, 6, 6, 5, 4, 3, 2, 6, 11, 12, 12, 9, 5, 3, 9, 19, 22, 21, 15, 7, 5, 8, 14, 15, 14, 11, 6, 4, 8, 14, 16, 14, 10, 6, 4, 8, 14, 16, 15, 11, 6, 4, 3];
song1_drums.amplitude = [75, 43, 25, 27, 20, 9, 13, 20, 16, 12, 9, 7, 5, 20, 37, 30, 19, 13, 9, 6, 30, 56, 42, 21, 12, 8, 5, 12, 20, 13, 5, 2, 1, 0, 27, 56, 42, 27, 27, 21, 10, 18, 33, 27, 14, 8, 6, 4, 29, 56, 42, 21, 12, 8, 5, 27, 52, 36, 21, 26, 21, 10, 14, 20, 16, 12, 9, 7, 5, 17, 32, 27, 14, 8, 6, 4, 12, 19, 16, 21, 29, 24, 16, 18, 22, 15, 18, 28, 24, 16, 35, 57, 42, 27, 29, 23, 11, 23, 36, 27, 19, 13, 9, 6, 30, 58, 44, 22, 12, 8, 5, 27, 52, 36, 21, 25, 21, 10, 14, 20, 17, 14, 10, 7, 5, 20, 37, 31, 21, 14, 9, 6, 30, 56, 44, 23, 13, 8, 5, 12, 20, 14, 5, 2, 1, 0, 27, 56, 44, 30, 30, 24, 13, 20, 33, 27, 14, 8, 6, 4, 29, 56, 44, 23, 13, 8, 5, 27, 52, 37, 21, 25, 21, 10, 14, 20, 17, 14, 10, 7, 5, 17, 32, 27, 15, 9, 6, 4, 12, 19, 17, 23, 30, 24, 16, 19, 23, 16, 19, 28, 24, 16, 36, 58, 45, 30, 30, 24, 13, 24, 36, 28, 20, 14, 10, 6, 30, 59, 47, 24, 13, 8, 5, 2];
song1_synth.amplitude = [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, 12, 7, 2, 1, 5, 11, 13, 14, 14, 11, 5, 6, 11, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14];
intro_bass.amplitude = [35, 27, 23, 21, 20, 19, 24, 28, 24, 21, 20, 18, 17, 21, 25, 22, 19, 12, 4, 1, 12, 24, 24, 22, 21, 19, 18, 23, 28, 26, 23, 21, 19, 18, 22, 25, 21, 18, 11, 4, 1, 12, 24, 24, 22, 20, 19, 18, 22, 27, 24, 21, 20, 18, 17, 22, 27, 23, 19, 12, 4, 1, 11, 23, 23, 21, 20, 18, 17, 22, 27, 24, 21, 19, 17, 16, 21, 25, 21, 18, 12, 4, 1, 11, 23, 23, 22, 20, 19, 18, 22, 24, 20, 16, 10, 3, 1, 11, 23, 23, 21, 19, 18, 17, 21, 23, 18, 15, 10, 3, 1, 0];
intro_bells.amplitude = [10, 10, 10, 7, 3, 2, 3, 6, 7, 7, 5, 2, 1, 2, 3, 4, 4, 3, 1, 0, 4, 9, 10, 11, 8, 3, 2, 4, 6, 7, 8, 6, 2, 1, 2, 3, 4, 5, 3, 1, 0, 4, 9, 10, 9, 7, 3, 2, 4, 7, 8, 7, 5, 2, 1, 2, 4, 4, 4, 2, 1, 0, 1, 2, 2, 2, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 7, 8, 9, 7, 3, 2, 3, 6, 6, 7, 5, 2, 1, 5, 11, 12, 12, 9, 4, 2, 4, 8, 9, 8, 5, 2, 1, 1];
intro_drum.amplitude = [83, 56, 39, 22, 7, 2, 11, 16, 8, 3, 1, 0, 0, 22, 41, 32, 21, 14, 10, 7, 14, 17, 8, 3, 1, 0, 0, 10, 16, 8, 3, 1, 0, 0, 27, 56, 52, 43, 28, 13, 7, 26, 43, 30, 18, 11, 8, 5, 13, 20, 16, 12, 9, 7, 5, 30, 54, 46, 36, 21, 7, 2, 11, 16, 8, 3, 1, 0, 0, 22, 41, 32, 21, 14, 10, 7, 14, 17, 8, 13, 20, 18, 15, 11, 8, 5, 12, 20, 18, 15, 36, 56, 48, 38, 22, 8, 3, 23, 42, 32, 22, 15, 10, 7, 14, 17, 8, 3, 1, 0, 0, 0];
intro_echo.amplitude = [11, 9, 8, 7, 6, 6, 6, 6, 6, 5, 4, 4, 4, 4, 5, 5, 4, 3, 3, 2, 2, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
intro_startdrum.amplitude = [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, 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, 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, 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, 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, 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, 22, 41, 33, 23, 16, 11, 7, 14, 18, 10, 14, 21, 18, 15, 11, 8, 5, 13, 20, 18, 15, 36, 57, 49, 38, 22, 8, 3, 23, 42, 37, 30, 25, 21, 18, 25, 28, 20, 15, 14, 13, 12, 12];
intro_synth.amplitude = [12, 12, 10, 10, 9, 9, 12, 16, 16, 15, 13, 13, 12, 14, 17, 19, 18, 15, 15, 14, 14, 16, 16, 15, 15, 14, 13, 16, 21, 22, 19, 17, 16, 15, 17, 20, 22, 20, 16, 15, 16, 17, 21, 21, 19, 16, 15, 15, 17, 20, 20, 17, 15, 15, 15, 16, 20, 20, 17, 15, 15, 14, 14, 16, 17, 16, 14, 13, 12, 15, 20, 22, 21, 19, 17, 15, 16, 18, 19, 17, 16, 14, 13, 14, 16, 17, 16, 14, 13, 13, 16, 20, 20, 17, 15, 14, 14, 17, 20, 20, 17, 15, 14, 15, 17, 20, 20, 18, 16, 15, 15, 13];
intro_synthecho.amplitude = [12, 11, 10, 10, 9, 9, 12, 16, 16, 14, 13, 13, 13, 14, 16, 16, 16, 15, 14, 13, 15, 16, 15, 14, 14, 14, 13, 17, 22, 22, 19, 17, 16, 15, 18, 21, 21, 19, 16, 15, 15, 19, 23, 24, 22, 19, 17, 18, 20, 22, 20, 17, 15, 15, 14, 17, 21, 20, 18, 15, 15, 15, 15, 16, 16, 15, 14, 13, 12, 15, 20, 21, 20, 18, 16, 14, 15, 18, 19, 18, 16, 14, 12, 14, 16, 17, 16, 14, 13, 14, 17, 20, 19, 18, 16, 14, 14, 17, 19, 19, 17, 15, 13, 12, 15, 18, 19, 18, 17, 17, 16, 16, 17, 16, 15, 13, 12, 11, 14, 18, 18, 17, 17, 16, 14, 15, 18, 19, 19, 17, 15, 14, 15, 17, 18, 18, 16, 14, 14, 17, 21, 21, 20, 18, 16, 15, 19, 22, 20, 18, 16, 16, 16, 19, 23, 23, 21, 19, 18, 19, 20, 21, 19, 18, 16, 15, 14, 16, 19, 20, 18, 16, 14, 13, 14, 16, 16, 15, 13, 12, 12, 16, 22, 23, 21, 18, 16, 14, 16, 18, 19, 18, 16, 14, 13, 14, 17, 19, 17, 15, 15, 14, 16, 19, 19, 17, 15, 14, 15, 17, 19, 18, 16, 14, 13, 13, 16, 20, 21, 20, 18, 16, 15, 14];
boss3_first.amplitude = [85, 66, 53, 45, 44, 47, 39, 28, 23, 20, 46, 72, 66, 57, 48, 41, 42, 39, 29, 23, 21, 42, 65, 62, 53, 46, 39, 41, 41, 30, 24, 22, 47, 78, 74, 58, 52, 46, 44, 43, 32, 24, 21, 20, 41, 63, 58, 50, 44, 44, 47, 39, 28, 23, 20, 46, 72, 66, 57, 48, 41, 42, 39, 29, 23, 21, 42, 65, 62, 53, 46, 39, 41, 41, 35, 37, 36, 54, 82, 77, 59, 51, 45, 38, 35, 28, 22, 19, 18, 40, 60, 53, 46, 40, 38, 38, 32, 25, 21, 19, 45, 76, 72, 56, 44, 37, 36, 34, 26, 21, 19, 40, 64, 62, 52, 43, 38, 39, 39, 31, 24, 22, 45, 79, 78, 61, 48, 39, 38, 38, 31, 23, 20, 18, 40, 60, 54, 46, 39, 38, 38, 32, 28, 29, 28, 51, 75, 68, 55, 42, 37, 39, 38, 31, 26, 23, 40, 60, 57, 46, 37, 33, 36, 36, 29, 23, 20, 43, 77, 76, 59, 52, 44, 38, 35, 28, 22, 19, 17, 39, 64, 61, 49, 41, 44, 47, 38, 27, 23, 21, 46, 75, 71, 57, 48, 39, 39, 39, 30, 25, 22, 42, 65, 65, 56, 46, 39, 42, 41, 33, 26, 21, 46, 76, 73, 61, 50, 42, 45, 47, 38, 28, 23, 21, 41, 65, 61, 49, 41, 44, 47, 38, 27, 23, 21, 46, 75, 71, 57, 48, 39, 39, 39, 30, 25, 22, 42, 65, 65, 56, 46, 39, 42, 41, 33, 26, 21, 44, 79, 78, 61, 48, 40, 40, 43, 37, 28, 24, 22, 42, 64, 59, 50, 44, 43, 42, 34, 24, 19, 17, 43, 74, 69, 53, 42, 33, 36, 37, 28, 23, 21, 44, 66, 61, 53, 46, 39, 37, 33, 25, 17, 9, 38, 75, 73, 58, 52, 46, 41, 40, 32, 24, 21, 19, 45, 71, 64, 54, 47, 45, 47, 39, 40, 44, 38, 56, 74, 65, 56, 47, 51, 70, 67, 48, 38, 31, 42, 56, 52, 42, 32, 26, 28, 28, 18, 10, 6, 36, 77, 82, 69, 53, 43, 42, 42, 35, 29, 26, 23, 21];
boss3_second.amplitude = [57, 53, 50, 49, 51, 52, 52, 53, 50, 48, 49, 50, 47, 45, 43, 41, 43, 47, 49, 46, 43, 43, 47, 52, 53, 52, 52, 53, 52, 48, 50, 52, 50, 49, 48, 46, 44, 43, 44, 48, 49, 47, 45, 43, 44, 46, 49, 49, 47, 46, 45, 46, 45, 43, 45, 46, 48, 51, 51, 49, 47, 47, 49, 49, 47, 44, 44, 49, 52, 51, 50, 52, 54, 52, 48, 46, 46, 45, 45, 47, 46, 43, 42, 45, 47, 49, 50, 48, 45, 49, 52, 52, 53, 52, 50, 51, 52, 50, 48, 48, 47, 49, 50, 52, 51, 50, 51, 48, 45, 43, 40, 43, 49, 54, 55, 52, 53, 55, 52, 52, 52, 48, 46, 47, 49, 48, 46, 43, 42, 47, 50, 50, 55, 54, 48, 48, 47, 45, 43, 44, 44, 42, 41, 40, 40, 42, 46, 47, 46, 47, 46, 44, 43, 43, 44, 46, 46, 45, 46, 45, 44, 44, 45, 46, 48, 52, 51, 48, 46, 43, 39, 40, 41, 41, 40, 44, 47, 50, 51, 53, 53, 50, 49, 48, 50, 49, 50, 50, 48, 47, 46, 48, 51, 52, 49, 46, 47, 48, 47, 45, 45, 46, 49, 51, 54, 53, 51, 51, 51, 49, 48, 48, 46, 48, 50, 49, 48, 48, 50, 53, 52, 49, 46, 45, 48, 52, 52, 50, 48, 49, 50, 49, 50, 51, 52, 53, 51, 49, 49, 50, 49, 50, 50, 48, 49, 48, 45, 45, 48, 50, 50, 49, 49, 49, 49, 50, 49, 47, 45, 44, 46, 47, 46, 44, 43, 43, 42, 40, 41, 44, 50, 51, 49, 53, 56, 54, 52, 50, 52, 52, 49, 46, 47, 48, 44, 43, 46, 47, 47, 48, 47, 49, 55, 55, 51, 53, 54, 52, 54, 57, 53, 49, 48, 49, 48, 46, 46, 44, 45, 48, 48, 47, 46, 47, 47, 44, 42, 41, 41, 43, 44, 46, 49, 48, 44, 44, 47, 47, 46, 46, 46, 47, 47, 46, 46, 46, 50, 55, 62, 55, 36, 24, 20, 18, 17, 16, 16, 17, 17, 17, 16, 15, 15, 16, 17, 17, 17, 17, 17, 17];
song3_bass.amplitude = [26, 22, 20, 20, 19, 16, 18, 20, 19, 20, 19, 17, 19, 23, 23, 21, 20, 19, 16, 17, 21, 21, 20, 20, 19, 13, 14, 22, 22, 21, 20, 19, 13, 13, 20, 20, 19, 20, 19, 13, 13, 21, 22, 21, 20, 19, 13, 13, 20, 21, 20, 20, 19, 12, 13, 22, 23, 22, 21, 20, 13, 12, 18, 19, 19, 20, 19, 12, 13, 20, 20, 21, 21, 20, 13, 12, 18, 19, 20, 20, 19, 12, 13, 20, 20, 20, 20, 20, 13, 12, 18, 19, 20, 20, 17, 10, 14, 21, 21, 21, 21, 20, 21, 23, 22, 20, 20, 20, 15, 15, 21, 21, 20, 19, 18, 14, 16, 22, 22, 21, 21, 20, 14, 14, 21, 21, 20, 19, 18, 12, 14, 22, 22, 21, 21, 20, 13, 13, 20, 21, 20, 19, 18, 12, 13, 21, 22, 21, 21, 20, 13, 13, 20, 20, 19, 19, 18, 12, 13, 20, 20, 21, 21, 20, 13, 13, 20, 20, 20, 20, 19, 12, 12, 18, 19, 20, 20, 18, 11, 13, 21, 20, 19, 20, 17, 12, 15, 20, 20, 20, 20, 15, 13, 19, 22, 21, 21, 21, 16, 15, 21, 21, 20, 20, 20, 15, 16, 22, 23, 21, 20, 20, 14, 14, 20, 21, 20, 20, 19, 13, 5, 0];
song3_bells.amplitude = [15, 14, 12, 16, 22, 18, 13, 14, 13, 10, 10, 11, 10, 15, 20, 16, 15, 21, 23, 18, 15, 17, 14, 16, 23, 23, 17, 13, 13, 11, 13, 19, 21, 16, 16, 20, 17, 13, 15, 15, 12, 15, 20, 16, 16, 23, 24, 16, 18, 26, 20, 16, 20, 20, 16, 15, 15, 12, 15, 23, 20, 15, 16, 15, 12, 12, 13, 10, 12, 18, 21, 17, 16, 23, 19, 13, 15, 17, 14, 17, 24, 19, 15, 17, 16, 12, 15, 21, 18, 15, 20, 23, 18, 14, 16, 13, 14, 21, 19, 15, 18, 23, 19, 17, 24, 23, 19, 23, 25, 20, 15, 16, 14, 15, 22, 25, 19, 14, 15, 13, 10, 12, 13, 12, 15, 20, 16, 17, 23, 23, 16, 13, 14, 12, 14, 21, 22, 18, 14, 13, 12, 14, 19, 17, 18, 23, 23, 17, 14, 16, 14, 14, 18, 22, 18, 16, 21, 19, 18, 25, 26, 20, 18, 21, 17, 15, 15, 15, 12, 16, 22, 17, 13, 13, 12, 10, 11, 12, 11, 14, 20, 20, 17, 19, 23, 17, 14, 15, 13, 14, 21, 24, 17, 13, 13, 12, 12, 17, 19, 15, 18, 23, 18, 13, 14, 13, 10, 14, 21, 17, 15, 21, 23, 17, 17, 23, 19, 18, 24, 21, 14, 6];
song3_chiptune.amplitude = [12, 11, 11, 10, 10, 9, 14, 20, 21, 20, 19, 18, 17, 17, 17, 16, 15, 13, 11, 11, 13, 16, 16, 16, 17, 18, 19, 19, 17, 16, 15, 14, 13, 12, 12, 13, 13, 14, 14, 13, 14, 14, 14, 14, 13, 12, 11, 13, 18, 21, 21, 21, 21, 21, 20, 18, 16, 16, 17, 17, 17, 18, 21, 21, 21, 19, 18, 17, 17, 16, 16, 16, 15, 14, 14, 18, 22, 23, 24, 24, 24, 24, 21, 15, 13, 12, 10, 8, 7, 10, 13, 14, 15, 17, 18, 19, 18, 15, 14, 15, 15, 15, 15, 18, 22, 22, 22, 22, 21, 19, 17, 16, 15, 15, 15, 16, 17, 19, 18, 18, 19, 19, 20, 20, 19, 18, 16, 16, 15, 14, 15, 18, 20, 20, 19, 19, 20, 21, 19, 17, 18, 17, 17, 16, 17, 18, 20, 21, 22, 22, 22, 22, 20, 18, 18, 17, 17, 17, 17, 18, 18, 18, 19, 19, 19, 17, 13, 10, 9, 8, 7, 6, 10, 15, 16, 15, 15, 16, 17, 17, 16, 15, 15, 15, 15, 15, 17, 18, 19, 20, 22, 23, 23, 22, 20, 19, 19, 17, 16, 16, 17, 18, 19, 19, 19, 18, 18, 17, 16, 15, 14, 12, 13, 15, 16, 17, 18, 20, 22, 22, 22, 23];
song3_chords.amplitude = [11, 11, 11, 11, 11, 11, 7, 2, 1, 0, 0, 0, 4, 9, 10, 11, 11, 11, 11, 11, 7, 2, 1, 0, 0, 0, 4, 9, 10, 11, 11, 11, 11, 11, 7, 2, 1, 0, 0, 0, 4, 9, 10, 11, 11, 11, 11, 11, 7, 2, 1, 0, 0, 0, 4, 9, 10, 11, 11, 11, 11, 11, 7, 2, 1, 0, 0, 0, 4, 9, 10, 11, 11, 11, 11, 11, 7, 2, 1, 0, 0, 0, 4, 9, 10, 11, 11, 11, 11, 7, 2, 1, 0, 0, 0, 3, 7, 8, 9, 9, 8, 8, 7, 4, 1, 0, 0, 0, 0, 4, 9, 10, 11, 11, 11, 11, 11, 7, 2, 1, 0, 0, 0, 4, 9, 10, 11, 11, 11, 11, 11, 7, 2, 1, 0, 0, 0, 4, 9, 10, 11, 11, 11, 11, 11, 7, 2, 1, 0, 0, 0, 4, 9, 10, 11, 11, 11, 11, 11, 7, 2, 1, 0, 0, 0, 4, 9, 10, 11, 11, 11, 11, 11, 7, 2, 1, 0, 0, 1, 5, 9, 10, 11, 11, 11, 11, 7, 2, 1, 0, 0, 0, 3, 8, 10, 11, 11, 11, 11, 10, 7, 2, 1, 0, 0, 0, 3, 8, 9, 9, 8, 8, 7, 6, 4, 1, 0, 0, 0, 0, 0, 0];
song3_drums.amplitude = [74, 52, 40, 30, 19, 18, 24, 23, 14, 8, 4, 2, 26, 59, 61, 47, 35, 25, 16, 15, 22, 21, 16, 11, 10, 8, 23, 54, 60, 45, 33, 23, 14, 17, 25, 21, 12, 6, 3, 2, 27, 56, 53, 43, 35, 27, 19, 19, 25, 19, 11, 6, 3, 2, 25, 54, 54, 43, 33, 22, 15, 18, 21, 15, 9, 5, 3, 2, 26, 56, 52, 40, 29, 20, 13, 16, 20, 16, 13, 11, 9, 6, 31, 52, 43, 34, 25, 16, 10, 16, 21, 14, 7, 4, 2, 21, 53, 61, 50, 39, 30, 20, 18, 24, 23, 15, 8, 4, 2, 20, 50, 57, 46, 36, 26, 18, 19, 26, 22, 13, 7, 4, 2, 25, 59, 61, 46, 33, 24, 15, 16, 20, 18, 15, 12, 9, 6, 31, 58, 52, 40, 29, 20, 13, 17, 22, 16, 9, 5, 3, 2, 27, 56, 53, 43, 33, 23, 16, 18, 21, 15, 8, 5, 3, 2, 25, 49, 44, 37, 29, 19, 14, 18, 21, 14, 8, 5, 3, 2, 26, 53, 47, 37, 28, 18, 17, 22, 22, 16, 12, 10, 8, 23, 54, 60, 45, 33, 23, 14, 17, 25, 21, 13, 7, 4, 2, 22, 54, 61, 50, 38, 28, 19, 20, 25, 21, 12, 6, 4, 2, 1, 1];
boss2_first.amplitude = [93, 76, 62, 52, 47, 47, 43, 38, 34, 31, 27, 20, 12, 5, 23, 59, 76, 72, 64, 54, 54, 57, 51, 38, 27, 34, 43, 43, 41, 39, 38, 32, 22, 13, 6, 2, 19, 42, 44, 42, 42, 45, 48, 44, 37, 32, 52, 76, 75, 65, 58, 50, 47, 51, 47, 43, 41, 42, 43, 38, 30, 23, 42, 69, 71, 66, 59, 48, 45, 45, 39, 33, 30, 36, 45, 45, 42, 41, 43, 44, 41, 37, 34, 52, 71, 71, 62, 49, 43, 42, 41, 35, 30, 27, 24, 20, 16, 14, 11, 37, 68, 72, 64, 51, 55, 65, 61, 50, 37, 25, 34, 48, 47, 42, 37, 42, 47, 41, 33, 26, 32, 42, 44, 40, 33, 29, 50, 67, 59, 52, 48, 64, 81, 73, 60, 50, 53, 59, 55, 46, 35, 46, 57, 50, 43, 35, 28, 44, 69, 71, 61, 51, 48, 48, 44, 38, 34, 52, 76, 72, 58, 54, 52, 45, 38, 35, 33, 31, 54, 80, 80, 73, 62, 58, 59, 55, 46, 37, 32, 39, 48, 48, 44, 38, 45, 56, 54, 46, 37, 56, 85, 92, 90, 81, 65, 59, 57, 48, 38, 32, 39, 50, 51, 45, 38, 45, 57, 55, 47, 38, 56, 85, 87, 76, 65, 54, 54, 56, 49, 41, 34, 40, 51, 52, 49, 43, 47, 56, 54, 46, 38, 56, 85, 95, 94, 82, 71, 67, 62, 55, 45, 35, 40, 51, 52, 49, 43, 46, 57, 57, 48, 39, 33, 54, 80, 75, 65, 58, 55, 55, 48, 41, 37, 40, 47, 47, 43, 41, 40, 46, 50, 44, 40, 38, 58, 86, 85, 75, 67, 61, 59, 52, 43, 39, 37, 40, 44, 42, 41, 41, 46, 52, 46, 41, 39, 58, 84, 77, 64, 58, 55, 56, 51, 43, 38, 36, 40, 47, 45, 42, 41, 48, 55, 50, 43, 39, 58, 86, 85, 75, 72, 63, 57, 55, 46, 40, 37, 40, 47, 47, 44, 42, 49, 56, 51, 44, 40, 37, 36];
boss2_second.amplitude = [75, 66, 66, 74, 77, 70, 74, 83, 69, 54, 64, 63, 59, 61, 59, 72, 78, 82, 78, 66, 64, 72, 80, 70, 58, 63, 71, 72, 71, 66, 67, 70, 69, 75, 78, 74, 75, 77, 77, 73, 65, 60, 64, 64, 61, 66, 68, 71, 74, 79, 79, 69, 67, 63, 57, 57, 61, 64, 61, 68, 76, 72, 78, 85, 74, 64, 62, 59, 57, 61, 70, 79, 80, 71, 64, 57, 53, 56, 58, 56, 54, 54, 54, 58, 69, 67, 65, 76, 83, 80, 80, 84, 84, 70, 63, 69, 73, 70, 65, 74, 77, 71, 78, 78, 74, 73, 78, 78, 60, 55, 70, 74, 66, 56, 52, 65, 74, 78, 77, 70, 73, 71, 64, 63, 63, 56, 53, 64, 77, 84, 77, 79, 78, 75, 80, 83, 87, 86, 81, 79, 73, 67, 70, 74, 78, 81, 82, 79, 76, 71, 60, 51, 47, 44, 42, 50, 58, 62, 67, 70, 68, 64, 63, 58, 50, 51, 58, 61, 64, 70, 69, 68, 68, 68, 69, 63, 63, 71, 73, 68, 69, 70, 62, 58, 58, 58, 60, 61, 57, 61, 66, 61, 58, 61, 67, 67, 60, 60, 59, 52, 51, 57, 62, 69, 65, 59, 62, 62, 59, 57, 60, 61, 59, 60, 59, 57, 61, 68, 76, 79, 74, 72, 72, 71, 67, 57, 55, 57, 58, 57, 52, 47, 45, 55, 63, 62, 66, 65, 58, 53, 53, 55, 54, 58, 61, 64, 68, 68, 72, 68, 65, 68, 68, 70, 70, 65, 66, 64, 60, 58, 57, 58, 55, 55, 64, 66, 64, 63, 63, 70, 71, 63, 58, 58, 57, 60, 62, 63, 62, 58, 57, 56, 57, 57, 48, 49, 59, 65, 62, 53, 56, 61, 54, 46, 43, 45, 52, 54, 53, 53, 54, 59, 61, 57, 52, 54, 57, 59, 62, 60, 62, 69, 70, 62, 52, 52, 58, 59, 61, 68, 67, 64, 62, 60, 61, 61, 59, 58, 59, 62, 71, 72, 63, 55, 53, 50, 50, 52, 50];
song2_arp.amplitude = [38, 36, 37, 39, 38, 38, 38, 37, 39, 41, 41, 42, 44, 44, 44, 43, 44, 44, 44, 43, 43, 44, 45, 45, 44, 44, 45, 46, 45, 44, 43, 43, 43, 43, 44, 44, 46, 47, 46, 45, 44, 41, 40, 41, 41, 41, 40, 39, 38, 37, 40, 46, 47, 48, 45, 41, 41, 44, 44, 43, 46, 51, 52, 49, 45, 43, 43, 42, 41, 42, 47, 50, 48, 48, 49, 48, 48, 49, 47, 48, 50, 48, 50, 52, 49, 46, 42, 39, 40, 45, 50, 52, 51, 51, 50, 48, 45, 45, 46, 48, 49, 51, 49, 44, 40, 39, 41, 42, 44, 44, 43, 42, 40, 37, 37, 41, 44, 46, 45, 40, 38, 41, 43, 41, 41, 41, 42, 44, 42, 39, 37, 37, 37, 38, 43, 44, 44, 42, 39, 38, 37, 35, 36, 39, 40, 43, 45, 43, 39, 36, 35, 37, 35, 34, 37, 38, 40, 42, 42, 41, 40, 40, 39, 39, 40, 39, 39, 39, 39, 40, 37, 34, 33, 35, 35, 35, 37, 40, 44, 46, 45, 42, 40, 42, 42, 40, 40, 42, 42, 40, 38, 38, 41, 42, 40, 39, 41, 42, 42, 40, 36, 35, 37, 39, 40, 43, 46, 48, 50, 49, 47, 45, 45, 46, 46, 47, 49, 50, 50, 47, 46, 44, 42, 43, 45, 47, 51, 52, 51, 50, 49, 51, 51, 49, 50, 51, 53, 57, 59, 56, 51, 48, 46, 45, 46, 47, 48, 48, 47, 46, 44, 41, 41, 42, 40, 40, 47, 54, 54, 52, 48, 47, 49, 47, 45, 43, 48, 55, 54, 51, 49, 47, 46, 45, 44, 43, 48, 50, 51, 51, 50, 48, 46, 47, 46, 47, 48, 46, 49, 53, 52, 47, 43, 39, 40, 47, 51, 52, 51, 51, 49, 46, 45, 44, 44, 46, 48, 48, 46, 43, 40, 40, 42, 44, 47, 47, 46, 48, 48, 45, 42, 43, 44, 46, 46, 43, 40, 40, 38, 40, 44, 47, 48, 47, 45, 42, 44, 46, 42, 40, 42, 42, 42, 43, 43, 42, 39, 38, 40, 44, 44, 44, 44, 42, 42, 42, 42, 42, 40, 39, 38, 38, 39, 41, 42, 42, 42, 41, 39, 38, 37, 37, 38, 40, 42, 42, 41, 37, 36, 38, 39, 38, 40, 43, 44, 42, 37, 36, 39, 41, 40, 39, 39, 39, 40, 37, 35, 36, 37, 37, 37, 37, 40, 44, 43, 40, 37, 38, 39, 38, 39, 40, 42, 43, 40, 39, 38, 41, 44, 43, 42, 42, 40, 39, 39, 40, 42, 45, 44, 43, 40, 36, 36, 36, 36, 36, 39, 41, 41, 40, 38, 35, 36, 40, 42, 41, 42, 43, 42, 42, 43, 42, 41, 42, 41, 42, 44, 44, 43, 40, 38, 38, 37, 36, 36, 37, 38, 35, 38, 44, 46, 46, 44, 42, 40, 39, 38, 37, 39, 41, 39, 38, 37, 36, 37, 40, 43, 42, 44, 47, 48, 46, 41, 37, 37, 39, 38, 38, 39, 38, 37, 37, 37, 38, 38, 37, 36, 39, 40, 38, 37, 35, 34, 35, 36, 36, 35, 36, 34, 32, 34, 38, 39, 38, 35, 34, 36, 38, 36, 35, 36, 38, 38, 37, 36, 35, 35, 33, 33, 37, 41, 41, 39, 39, 37, 36, 36, 34, 35, 36, 37, 38, 38, 37, 34, 34, 35, 33, 37, 39, 37, 37, 38, 37, 35, 34, 34, 35, 36, 36, 35, 33, 34, 34, 35, 35, 35, 36, 37, 37, 35, 34, 34, 36, 37, 38, 38, 36, 34, 32, 34, 39, 40, 39, 38, 35, 33, 32, 30, 31, 36, 39, 39, 39, 39, 36, 34, 34, 35, 36, 40, 41, 36, 36, 40, 38, 36, 38, 39, 39, 42, 44, 44, 48, 50, 47, 42, 37, 34, 36, 39, 38, 39, 43, 43, 40, 39, 37, 34, 34, 34, 36, 39, 40, 38, 38, 37, 35, 37, 40, 41, 41, 42, 44, 45, 43, 38, 35, 35, 38, 38, 41, 45, 43, 38, 36, 36, 36, 34, 33, 34, 35, 36, 36, 38, 40, 40, 38, 36, 37, 37, 37, 36, 35, 37, 38, 38, 39, 38, 36, 38, 41, 38, 39, 43, 42, 41, 40, 38, 36, 39, 43, 42, 42, 41, 39, 39, 40, 41, 41, 42, 43, 43, 45, 44, 41, 37, 36, 36, 37, 40, 38, 36, 36, 36, 36, 35, 36, 35, 34, 33, 33, 35, 37, 35, 34, 37, 38, 37, 35, 35, 36, 36, 34, 32, 36, 39, 40, 38, 38, 36, 34, 34, 33, 34, 38, 38, 40, 41, 37, 33, 31, 32, 33, 36, 39, 38, 39, 38, 35, 36, 38, 37, 37, 37, 33, 32, 36, 39, 40, 40, 37, 34, 34, 34, 34, 35, 39, 40, 38, 35, 34, 33, 33, 33, 34, 37, 40, 41, 41, 39, 36, 35, 34, 34, 35, 37, 39, 37, 38, 37, 35, 35, 35, 35, 37, 39, 37, 37, 39, 37, 34];
song2_bass.amplitude = [55, 49, 46, 44, 44, 42, 27, 9, 21, 43, 48, 47, 46, 44, 43, 31, 13, 4, 20, 41, 44, 45, 45, 44, 42, 28, 10, 3, 1, 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, 11, 33, 45, 46, 45, 44, 44, 38, 22, 7, 21, 42, 46, 46, 45, 44, 43, 29, 11, 4, 20, 41, 44, 45, 45, 44, 42, 27, 9, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 34, 47, 48, 48, 47, 46, 45, 30, 10, 23, 45, 50, 49, 48, 47, 46, 31, 11, 4, 21, 43, 44, 43, 46, 46, 46, 30, 10, 3, 1, 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, 19, 45, 51, 49, 48, 47, 46, 39, 22, 7, 22, 45, 50, 49, 48, 47, 46, 31, 11, 4, 21, 43, 47, 47, 47, 46, 46, 30, 10, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 42, 48, 47, 46, 44, 43, 35, 18, 6, 20, 41, 44, 45, 45, 44, 42, 28, 10, 3, 19, 40, 44, 44, 44, 44, 42, 27, 9, 3, 1, 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, 18, 41, 46, 46, 45, 44, 43, 30, 12, 4, 20, 41, 44, 45, 45, 44, 42, 27, 9, 14, 34, 45, 46, 45, 44, 44, 38, 22, 7, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 44, 50, 49, 48, 47, 46, 31, 11, 4, 21, 42, 46, 48, 47, 46, 46, 30, 10, 14, 35, 48, 48, 48, 47, 46, 45, 30, 10, 3, 1, 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, 19, 44, 50, 49, 48, 47, 46, 31, 11, 4, 21, 43, 47, 47, 47, 46, 46, 30, 10, 23, 46, 51, 49, 48, 47, 46, 39, 22, 7, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 47, 54, 54, 52, 51, 50, 34, 12, 4, 21, 47, 53, 52, 52, 51, 50, 33, 11, 23, 48, 55, 53, 52, 52, 50, 47, 30, 10, 3, 1, 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, 20, 47, 54, 54, 52, 51, 50, 33, 11, 9, 29, 48, 51, 51, 51, 50, 49, 33, 11, 23, 48, 55, 54, 52, 51, 50, 34, 13, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 47, 52, 55, 54, 53, 52, 35, 12, 6, 26, 50, 53, 54, 54, 53, 52, 34, 11, 26, 52, 57, 56, 55, 54, 53, 36, 13, 4, 1, 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, 22, 48, 49, 49, 52, 53, 52, 34, 11, 26, 52, 58, 56, 55, 54, 53, 45, 25, 8, 25, 51, 57, 56, 55, 54, 53, 35, 12, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 47, 53, 52, 52, 51, 50, 33, 11, 23, 48, 55, 53, 52, 52, 50, 49, 33, 11, 23, 48, 55, 54, 52, 51, 50, 34, 12, 4, 1, 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, 21, 46, 50, 51, 51, 50, 50, 33, 11, 23, 48, 55, 53, 52, 52, 50, 35, 13, 4, 21, 47, 54, 54, 52, 51, 50, 33, 11, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 48, 53, 54, 53, 52, 52, 34, 11, 26, 52, 57, 56, 55, 54, 53, 42, 21, 7, 24, 48, 53, 55, 54, 53, 52, 35, 12, 4, 1, 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, 12, 38, 54, 55, 54, 54, 53, 52, 34, 11, 26, 51, 57, 56, 55, 54, 53, 36, 13, 4, 23, 49, 50, 49, 52, 53, 52, 34, 11, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
song2_drums.amplitude = [59, 47, 36, 28, 21, 22, 24, 20, 16, 12, 9, 36, 76, 79, 59, 45, 36, 27, 26, 25, 20, 16, 12, 9, 25, 47, 48, 41, 33, 26, 20, 21, 24, 20, 16, 12, 8, 38, 70, 67, 54, 39, 30, 25, 25, 24, 18, 14, 10, 7, 24, 45, 46, 39, 30, 23, 23, 26, 22, 17, 13, 10, 7, 37, 68, 60, 47, 37, 28, 26, 27, 23, 18, 14, 10, 7, 24, 44, 43, 35, 27, 21, 23, 24, 20, 16, 12, 9, 6, 36, 65, 56, 45, 36, 27, 26, 25, 20, 17, 13, 9, 25, 48, 50, 42, 33, 26, 20, 22, 24, 20, 16, 12, 9, 38, 79, 79, 58, 44, 36, 27, 26, 25, 20, 15, 11, 8, 24, 46, 47, 39, 31, 24, 19, 21, 22, 17, 13, 10, 7, 37, 68, 65, 54, 39, 28, 26, 27, 23, 18, 14, 10, 7, 24, 44, 44, 36, 28, 22, 23, 26, 22, 17, 13, 10, 7, 37, 68, 60, 47, 37, 28, 26, 27, 23, 18, 13, 9, 6, 23, 43, 42, 35, 27, 21, 22, 24, 20, 16, 12, 9, 36, 76, 79, 59, 45, 36, 27, 26, 25, 20, 16, 12, 9, 25, 47, 48, 41, 33, 26, 20, 21, 24, 20, 16, 12, 8, 38, 70, 67, 54, 39, 30, 25, 25, 24, 18, 14, 10, 7, 24, 45, 46, 39, 30, 23, 23, 26, 22, 17, 13, 10, 7, 37, 68, 60, 47, 37, 28, 26, 27, 23, 18, 14, 10, 7, 24, 44, 43, 35, 27, 21, 23, 24, 20, 16, 12, 9, 6, 36, 65, 56, 45, 36, 27, 26, 25, 20, 17, 13, 9, 25, 48, 50, 42, 33, 26, 20, 22, 24, 20, 16, 12, 9, 38, 79, 79, 58, 44, 36, 27, 26, 25, 20, 15, 11, 8, 24, 46, 47, 39, 31, 24, 19, 21, 22, 17, 13, 10, 7, 37, 68, 65, 54, 39, 28, 26, 27, 23, 18, 14, 10, 7, 24, 44, 44, 36, 28, 22, 23, 26, 22, 17, 13, 10, 7, 37, 68, 60, 47, 37, 28, 26, 27, 23, 18, 13, 9, 6, 23, 43, 42, 35, 27, 21, 22, 24, 20, 16, 12, 9, 36, 76, 79, 59, 45, 36, 27, 26, 25, 20, 16, 12, 9, 25, 47, 48, 41, 33, 26, 20, 21, 24, 20, 16, 12, 8, 38, 70, 67, 54, 39, 30, 25, 25, 24, 18, 14, 10, 7, 24, 45, 46, 39, 30, 23, 23, 26, 22, 17, 13, 10, 7, 37, 68, 60, 47, 37, 28, 26, 27, 23, 18, 14, 10, 7, 24, 44, 43, 35, 27, 21, 23, 24, 20, 16, 12, 9, 6, 36, 65, 56, 45, 36, 27, 26, 25, 20, 17, 13, 9, 25, 48, 50, 42, 33, 26, 20, 22, 24, 20, 16, 12, 9, 38, 79, 79, 58, 44, 36, 27, 26, 25, 20, 15, 11, 8, 24, 46, 47, 39, 31, 24, 19, 21, 22, 17, 13, 10, 7, 37, 68, 65, 54, 39, 28, 26, 27, 23, 18, 14, 10, 7, 24, 44, 44, 36, 28, 22, 23, 26, 22, 17, 13, 10, 7, 37, 68, 60, 47, 37, 28, 26, 27, 23, 18, 13, 9, 6, 23, 43, 42, 35, 27, 21, 22, 24, 20, 16, 12, 9, 36, 76, 79, 59, 45, 36, 27, 26, 25, 20, 16, 12, 9, 25, 47, 48, 41, 33, 26, 20, 21, 24, 20, 16, 12, 8, 38, 70, 67, 54, 39, 30, 25, 25, 24, 18, 14, 10, 7, 24, 45, 46, 39, 30, 23, 23, 26, 22, 17, 13, 10, 7, 37, 68, 60, 47, 37, 28, 26, 27, 23, 18, 14, 10, 7, 24, 44, 43, 35, 27, 21, 23, 24, 20, 16, 12, 9, 6, 36, 65, 56, 45, 36, 27, 26, 25, 20, 17, 13, 9, 25, 48, 50, 42, 33, 26, 20, 22, 24, 20, 16, 12, 9, 38, 79, 79, 58, 44, 36, 27, 26, 25, 20, 15, 11, 8, 24, 46, 47, 39, 31, 24, 19, 21, 22, 17, 13, 10, 7, 37, 68, 65, 54, 39, 28, 26, 27, 23, 18, 14, 10, 7, 24, 44, 44, 36, 28, 22, 23, 26, 22, 17, 13, 10, 7, 37, 68, 60, 47, 37, 28, 26, 27, 23, 18, 13, 9, 6, 23, 43, 42, 35, 27, 21, 22, 24, 20, 16, 12, 9, 36, 76, 79, 59, 45, 36, 27, 26, 25, 20, 16, 12, 9, 25, 47, 48, 41, 33, 26, 20, 21, 24, 20, 16, 12, 8, 38, 70, 67, 54, 39, 30, 25, 25, 24, 18, 14, 10, 7, 24, 45, 46, 39, 30, 23, 23, 26, 22, 17, 13, 10, 7, 37, 68, 60, 47, 37, 28, 26, 27, 23, 18, 14, 10, 7, 24, 44, 43, 35, 27, 21, 23, 24, 20, 16, 12, 9, 6, 36, 65, 56, 45, 36, 27, 26, 25, 20, 17, 13, 9, 6];
song2_pluck.amplitude = [0, 0, 0, 0, 0, 18, 40, 45, 44, 40, 35, 30, 23, 19, 23, 28, 31, 32, 38, 45, 46, 43, 40, 37, 33, 27, 22, 23, 26, 29, 32, 41, 52, 53, 47, 42, 41, 38, 29, 25, 27, 28, 31, 32, 39, 45, 44, 40, 37, 36, 33, 26, 24, 26, 30, 33, 37, 43, 44, 40, 37, 35, 33, 31, 27, 26, 30, 35, 37, 43, 49, 51, 49, 45, 41, 38, 31, 25, 26, 29, 33, 36, 42, 47, 47, 44, 42, 39, 36, 28, 21, 23, 27, 31, 32, 40, 51, 53, 49, 45, 42, 39, 29, 20, 22, 26, 29, 31, 41, 52, 52, 48, 45, 43, 40, 32, 26, 29, 32, 32, 33, 40, 46, 46, 42, 38, 33, 28, 23, 19, 24, 27, 30, 31, 41, 53, 53, 49, 44, 39, 35, 27, 22, 26, 29, 29, 34, 44, 52, 50, 44, 38, 34, 30, 25, 24, 28, 30, 29, 37, 49, 53, 51, 46, 40, 34, 29, 23, 23, 27, 29, 31, 40, 50, 51, 47, 43, 39, 35, 25, 19, 23, 30, 34, 33, 38, 46, 48, 45, 42, 39, 35, 27, 21, 26, 30, 33, 35, 42, 51, 51, 46, 42, 38, 35, 28, 24, 26, 28, 30, 31, 38, 46, 46, 42, 38, 35, 34, 28, 23, 24, 28, 31, 32, 40, 49, 49, 45, 41, 38, 33, 26, 23, 25, 28, 31, 37, 46, 51, 51, 47, 42, 37, 33, 28, 24, 25, 29, 32, 40, 48, 51, 50, 47, 41, 35, 28, 21, 21, 26, 30, 33, 39, 45, 44, 43, 41, 39, 36, 28, 21, 22, 24, 28, 31, 41, 52, 53, 49, 45, 40, 35, 26, 21, 24, 29, 32, 33, 42, 50, 48, 43, 38, 35, 33, 26, 22, 25, 30, 33, 35, 41, 47, 47, 44, 40, 36, 32, 25, 21, 25, 30, 32, 33, 40, 48, 48, 45, 41, 36, 34, 29, 25, 27, 30, 33, 38, 45, 50, 48, 44, 41, 37, 32, 26, 25, 29, 31, 32, 39, 46, 46, 44, 40, 38, 36, 34, 29, 27, 29, 33, 35, 41, 51, 52, 48, 42, 37, 34, 26, 20, 24, 30, 34, 35, 41, 49, 48, 45, 42, 39, 35, 26, 22, 26, 29, 30, 30, 36, 44, 45, 42, 38, 35, 31, 24, 20, 24, 28, 30, 31, 40, 50, 50, 46, 42, 38, 34, 26, 21, 25, 29, 31, 30, 36, 45, 45, 41, 38, 34, 29, 24, 22, 26, 28, 29, 31, 37, 43, 41, 36, 31, 27, 24, 19, 16, 18, 21, 22, 27, 34, 35, 33, 30, 28, 26, 21, 16, 16, 19, 21, 21, 26, 33, 34, 32, 29, 26, 23, 17, 13, 16, 19, 22, 23, 28, 35, 36, 34, 31, 29, 26, 20, 14, 16, 20, 23, 23, 29, 36, 36, 34, 31, 28, 25, 19, 15, 15, 18, 21, 22, 28, 35, 34, 32, 31, 29, 27, 21, 17, 18, 21, 22, 22, 28, 34, 32, 30, 27, 25, 21, 17, 16, 18, 20, 22, 27, 34, 36, 35, 32, 28, 25, 21, 18, 16, 17, 18, 18, 24, 32, 34, 33, 30, 26, 23, 19, 15, 17, 21, 23, 22, 28, 38, 41, 39, 36, 31, 27, 19, 14, 16, 21, 23, 22, 27, 36, 36, 32, 27, 25, 24, 18, 13, 16, 20, 22, 22, 27, 36, 36, 33, 30, 27, 25, 19, 15, 17, 20, 22, 22, 27, 35, 35, 33, 30, 28, 26, 20, 16, 19, 21, 21, 21, 29, 38, 38, 34, 30, 27, 24, 19, 17, 19, 20, 20, 25, 31, 34, 32, 28, 26, 23, 20, 16, 16, 19, 21, 21, 27, 36, 37, 34, 31, 28, 25, 23, 19, 18, 22, 23, 22, 25, 32, 33, 32, 28, 24, 21, 15, 12, 15, 18, 21, 21, 26, 33, 33, 32, 28, 24, 21, 16, 12, 14, 16, 18, 19, 27, 36, 37, 37, 34, 30, 27, 19, 14, 16, 19, 20, 21, 29, 39, 38, 35, 31, 27, 23, 18, 15, 16, 18, 19, 19, 29, 40, 42, 40, 37, 33, 27, 19, 16, 17, 20, 20, 26, 34, 36, 35, 33, 31, 27, 23, 18, 16, 18, 20, 21, 26, 33, 36, 35, 33, 30, 28, 22, 16, 16, 18, 21, 22, 27, 33, 34, 33, 30, 27, 25, 18, 13, 15, 18, 21, 21, 28, 36, 36, 34, 30, 26, 24, 18, 14, 16, 20, 22, 22, 27, 34, 35, 33, 31, 28, 26, 20, 16, 20, 22, 22, 23, 29, 37, 37, 33, 28, 24, 21, 16, 13, 16, 19, 20, 21, 27, 34, 35, 32, 28, 24, 21, 18, 16, 20, 23, 24, 29, 36, 40, 40, 35, 31, 26, 21, 16, 15, 19, 21, 20, 25, 34, 39, 36, 32, 28, 24, 20, 15, 15, 19, 20, 19, 26, 34, 36, 34, 31, 27, 24, 18, 13, 16, 19, 21, 20, 26, 34, 36, 33, 29, 26, 23];
song2_synth.amplitude = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 14, 25, 27, 24, 20, 16, 11, 6, 2, 1, 0, 0, 6, 18, 27, 29, 28, 22, 17, 21, 30, 31, 29, 25, 21, 18, 14, 10, 7, 5, 5, 6, 7, 8, 9, 9, 8, 6, 4, 4, 4, 5, 7, 8, 9, 8, 7, 7, 6, 6, 7, 14, 24, 28, 25, 20, 16, 12, 7, 3, 1, 0, 0, 0, 12, 28, 30, 26, 22, 16, 15, 24, 32, 34, 32, 27, 21, 16, 12, 10, 7, 6, 5, 5, 7, 8, 9, 9, 10, 9, 8, 6, 5, 5, 5, 6, 7, 9, 10, 10, 9, 7, 9, 21, 31, 33, 31, 26, 21, 17, 11, 4, 1, 0, 0, 6, 18, 26, 25, 22, 19, 18, 26, 40, 45, 42, 34, 25, 19, 12, 5, 2, 1, 0, 3, 16, 28, 31, 27, 23, 18, 15, 10, 4, 1, 0, 0, 6, 20, 31, 31, 27, 23, 20, 16, 10, 4, 1, 0, 0, 6, 23, 37, 37, 31, 27, 22, 15, 8, 3, 1, 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, 0, 0, 0, 6, 19, 30, 29, 22, 17, 12, 9, 5, 2, 1, 0, 0, 6, 17, 24, 23, 19, 16, 15, 18, 26, 28, 27, 26, 22, 16, 12, 8, 6, 5, 6, 7, 9, 9, 8, 8, 7, 6, 5, 5, 6, 7, 9, 9, 10, 9, 7, 5, 4, 4, 5, 14, 27, 31, 28, 20, 15, 10, 6, 2, 1, 0, 0, 2, 12, 24, 28, 28, 26, 20, 22, 31, 35, 34, 30, 23, 19, 15, 12, 9, 7, 5, 5, 5, 6, 7, 9, 8, 8, 8, 7, 5, 5, 5, 6, 7, 8, 10, 11, 10, 8, 7, 10, 22, 32, 35, 31, 26, 21, 15, 8, 3, 1, 0, 0, 7, 21, 30, 33, 31, 26, 23, 25, 29, 32, 31, 26, 21, 17, 11, 4, 1, 0, 0, 6, 19, 28, 29, 27, 21, 17, 13, 7, 3, 1, 0, 0, 7, 20, 27, 27, 24, 19, 16, 11, 5, 2, 1, 0, 0, 6, 19, 27, 27, 25, 22, 20, 16, 9, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 22, 33, 34, 30, 23, 19, 22, 29, 29, 27, 25, 21, 16, 9, 4, 1, 0, 0, 5, 18, 28, 32, 32, 30, 26, 21, 13, 5, 2, 1, 0, 6, 18, 27, 28, 26, 24, 22, 19, 16, 12, 8, 6, 4, 3, 3, 4, 6, 7, 8, 9, 18, 29, 32, 31, 30, 26, 23, 29, 33, 32, 29, 23, 18, 13, 7, 2, 1, 0, 0, 12, 29, 36, 36, 31, 25, 19, 13, 6, 2, 1, 0, 1, 12, 27, 32, 32, 29, 25, 20, 18, 16, 12, 9, 7, 7, 17, 32, 36, 36, 34, 29, 25, 26, 27, 26, 25, 22, 17, 13, 10, 8, 6, 6, 5, 12, 23, 25, 25, 23, 21, 18, 16, 13, 11, 10, 7, 4, 16, 32, 38, 36, 31, 25, 23, 28, 35, 35, 32, 28, 22, 15, 8, 3, 1, 0, 0, 8, 22, 31, 33, 28, 22, 18, 12, 6, 2, 1, 0, 0, 14, 31, 33, 29, 23, 17, 14, 9, 4, 1, 0, 0, 1, 14, 31, 35, 32, 26, 20, 15, 10, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 26, 30, 29, 27, 23, 21, 27, 34, 35, 30, 24, 19, 14, 8, 3, 1, 0, 0, 6, 20, 30, 30, 28, 24, 19, 14, 8, 3, 1, 0, 0, 7, 23, 32, 31, 27, 24, 20, 16, 12, 9, 7, 6, 5, 5, 4, 4, 5, 5, 6, 11, 22, 30, 30, 28, 23, 18, 22, 32, 35, 32, 26, 20, 15, 9, 4, 1, 0, 0, 2, 15, 28, 30, 29, 26, 22, 19, 13, 5, 2, 1, 0, 6, 20, 32, 34, 33, 31, 26, 21, 17, 14, 11, 10, 8, 11, 21, 29, 30, 28, 25, 21, 24, 31, 31, 28, 23, 19, 17, 15, 12, 10, 8, 5, 6, 13, 22, 25, 27, 28, 24, 19, 14, 11, 9, 7, 5, 9, 19, 29, 32, 30, 28, 25, 28, 35, 35, 33, 28, 22, 18, 13, 6, 2, 1, 0, 1, 12, 29, 36, 33, 26, 21, 16, 10, 4, 1, 0, 0, 2, 15, 28, 30, 27, 23, 18, 14, 9, 4, 1, 0, 0, 6, 20, 30, 29, 28, 24, 20, 16, 9, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
boss1_first.amplitude = [99, 87, 67, 57, 53, 65, 85, 83, 70, 60, 53, 51, 60, 79, 88, 83, 72, 62, 58, 71, 90, 83, 65, 56, 51, 50, 67, 88, 83, 65, 55, 51, 50, 68, 84, 85, 79, 67, 60, 58, 71, 89, 89, 76, 63, 58, 57, 71, 89, 88, 79, 69, 61, 57, 71, 86, 89, 75, 53, 48, 49, 67, 88, 85, 71, 61, 56, 54, 69, 88, 88, 75, 63, 58, 57, 71, 83, 78, 69, 60, 55, 53, 68, 89, 83, 65, 56, 53, 52, 68, 89, 83, 64, 54, 51, 51, 68, 78, 71, 67, 60, 55, 69, 89, 87, 75, 64, 57, 55, 69, 89, 83, 65, 55, 51, 49, 66, 88, 83, 65, 55, 51, 50, 62, 82, 89, 83, 72, 63, 58, 71, 90, 83, 65, 56, 51, 50, 67, 88, 83, 65, 55, 51, 50, 68, 84, 85, 79, 67, 60, 58, 71, 89, 89, 76, 63, 58, 57, 71, 89, 88, 77, 65, 59, 56, 70, 88, 76, 55, 48, 47, 49, 67, 88, 85, 71, 61, 57, 55, 70, 88, 88, 75, 63, 58, 65, 82, 86, 77, 67, 59, 55, 69, 89, 86, 73, 62, 55, 52, 67, 88, 83, 65, 55, 51, 49, 55, 73, 81, 72, 63, 57, 54, 69, 89, 85, 70, 61, 55, 53, 68, 89, 83, 65, 55, 51, 50, 67, 88, 83, 65, 55, 51, 50, 67, 81, 81, 79, 68, 61, 58, 71, 90, 83, 65, 55, 51, 50, 67, 88, 83, 64, 54, 50, 50, 68, 84, 85, 77, 64, 58, 56, 70, 89, 89, 76, 63, 58, 57, 71, 89, 88, 77, 65, 60, 69, 86, 93, 77, 55, 48, 47, 49, 67, 78, 72, 66, 59, 56, 64, 81, 87, 75, 63, 59, 56, 69, 89, 89, 76, 63, 57, 55, 69, 89, 83, 65, 56, 51, 50, 67, 88, 83, 65, 55, 51, 50, 67, 88, 86, 72, 62, 56, 54, 69, 89, 85, 68, 58, 54, 52, 68, 89, 83, 64, 54, 50, 50, 67, 88, 83, 64, 54, 50, 50, 67, 84, 85, 79, 68, 61, 58, 71, 90, 83, 65, 55, 52, 52, 68, 89, 83, 64, 54, 51, 53, 70, 85, 79, 67, 59, 56, 56, 70, 82, 80, 73, 62, 57, 70, 90, 90, 80, 69, 61, 57, 71, 90, 94, 77, 54, 47, 47, 64, 87, 85, 71, 61, 56, 54, 69, 88, 88, 75, 63, 58, 57, 71, 85, 80, 70, 61, 56, 54, 69, 89, 83, 65, 56, 51, 50, 67, 88, 83, 64, 54, 50, 50, 67, 88, 86, 72, 62, 56, 54, 69, 89, 85, 68, 58, 55, 54, 53];
boss1_second.amplitude = [98, 91, 88, 84, 79, 74, 68, 61, 58, 61, 64, 64, 65, 76, 86, 76, 68, 66, 63, 64, 66, 69, 73, 77, 73, 66, 65, 75, 84, 80, 79, 79, 76, 68, 65, 65, 63, 65, 67, 66, 77, 91, 83, 71, 75, 76, 71, 74, 81, 84, 84, 85, 83, 76, 69, 67, 63, 58, 58, 60, 62, 63, 65, 67, 65, 66, 69, 67, 77, 89, 82, 69, 70, 75, 71, 65, 68, 72, 72, 76, 75, 69, 78, 86, 83, 80, 80, 80, 73, 72, 76, 77, 79, 82, 84, 77, 79, 83, 73, 69, 69, 67, 69, 74, 73, 69, 69, 70, 67, 65, 73, 79, 79, 79, 80, 78, 70, 63, 61, 61, 62, 62, 61, 71, 87, 82, 71, 75, 74, 68, 65, 66, 69, 71, 73, 68, 62, 74, 86, 81, 75, 78, 79, 72, 65, 60, 61, 62, 62, 63, 64, 74, 82, 77, 73, 76, 74, 67, 74, 84, 84, 82, 82, 79, 73, 67, 66, 66, 62, 65, 67, 63, 63, 69, 73, 68, 68, 70, 68, 78, 80, 71, 73, 75, 70, 68, 72, 72, 69, 70, 68, 63, 64, 76, 85, 82, 77, 73, 71, 67, 71, 78, 78, 79, 78, 79, 73, 76, 80, 68, 65, 68, 67, 66, 68, 66, 63, 64, 65, 64, 72, 80, 77, 73, 76, 78, 71, 62, 57, 57, 58, 61, 66, 67, 77, 88, 81, 70, 69, 69, 66, 68, 73, 72, 71, 72, 69, 66, 77, 85, 81, 77, 76, 82, 79, 72, 66, 62, 60, 58, 57, 60, 73, 82, 75, 71, 72, 70, 67, 73, 81, 80, 80, 79, 75, 69, 72, 72, 65, 65, 64, 59, 58, 64, 64, 62, 61, 61, 62, 63, 74, 77, 68, 74, 82, 74, 66, 68, 68, 69, 71, 68, 63, 72, 88, 87, 79, 77, 76, 75, 74, 78, 82, 79, 78, 77, 80, 87, 92, 85, 72, 72, 72, 64, 62, 65, 67, 65, 65, 66, 66, 77, 89, 84, 74, 79, 85, 82, 77, 70, 63, 58, 60, 64, 64, 73, 80, 70, 75, 78, 74, 75, 76, 76, 71, 65, 68, 70, 66, 74, 87, 85, 81, 82, 80, 71, 63, 63, 63, 64, 65, 66, 67, 77, 82, 74, 72, 73, 73, 72, 74, 79, 81, 82, 80, 78, 71, 65, 66, 62, 67, 74, 72, 67, 65, 64, 60, 62, 64, 63, 74, 90, 83, 68, 68, 70, 66, 69, 76, 79, 72, 63, 62, 65, 77, 87, 87, 84, 80, 79, 75, 76, 82, 83, 80, 81, 81, 74, 80, 86, 77, 69, 71, 71, 71, 74, 77, 75, 68, 63, 62, 62, 61];
cong.amplitude = [99, 85, 74, 64, 53, 48, 51, 50, 46, 45, 48, 50, 66, 83, 80, 74, 67, 56, 55, 61, 56, 51, 50, 48, 64, 87, 88, 80, 69, 59, 55, 51, 50, 49, 50, 52, 50, 64, 86, 88, 82, 69, 62, 57, 59, 67, 64, 61, 60, 60, 73, 89, 90, 77, 63, 56, 51, 49, 50, 48, 49, 51, 48, 62, 85, 90, 81, 67, 58, 56, 58, 63, 63, 54, 48, 46, 63, 83, 87, 77, 63, 55, 57, 57, 50, 48, 50, 50, 45, 60, 84, 88, 78, 67, 60, 61, 69, 69, 67, 66, 64, 63, 76, 87, 81, 73, 66, 57, 55, 55, 54, 53, 58, 57, 67, 86, 92, 83, 67, 57, 53, 58, 62, 60, 55, 52, 50, 65, 86, 93, 86, 68, 57, 53, 53, 53, 54, 55, 54, 51, 65, 86, 92, 85, 70, 61, 59, 66, 73, 68, 65, 67, 66, 76, 87, 84, 78, 67, 55, 50, 51, 53, 55, 57, 57, 50, 64, 82, 80, 74, 64, 56, 53, 53, 56, 58, 55, 49, 44, 62, 82, 80, 73, 62, 52, 54, 66, 70, 63, 57, 50, 35, 52, 76, 72, 63, 50, 39, 48, 67, 71, 63, 58, 56, 51, 46];
Frame 7
stop();
Frame 8
stop();
Frame 9
stop();
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
Frame 13
stop();
Frame 14
stop();
Symbol 12 MovieClip [blow_up_linkage] Frame 16
stop();
Symbol 42 MovieClip [blue_i_linkage] Frame 1
stop();
Symbol 42 MovieClip [blue_i_linkage] Frame 10
stop();
Symbol 43 MovieClip [blue_ii_linkage] Frame 1
stop();
Symbol 43 MovieClip [blue_ii_linkage] Frame 10
stop();
Symbol 44 MovieClip [blue_iii_linkage] Frame 1
stop();
Symbol 44 MovieClip [blue_iii_linkage] Frame 10
stop();
Symbol 46 MovieClip [blue_iiii_linkage] Frame 1
stop();
Symbol 46 MovieClip [blue_iiii_linkage] Frame 10
stop();
Symbol 84 MovieClip [green_i_linkage] Frame 1
stop();
Symbol 84 MovieClip [green_i_linkage] Frame 10
stop();
Symbol 86 MovieClip [green_ii_linkage] Frame 1
stop();
Symbol 86 MovieClip [green_ii_linkage] Frame 10
stop();
Symbol 88 MovieClip [green_iii_linkage] Frame 1
stop();
Symbol 88 MovieClip [green_iii_linkage] Frame 10
stop();
Symbol 90 MovieClip [green_iiii_linkage] Frame 1
stop();
Symbol 90 MovieClip [green_iiii_linkage] Frame 10
stop();
Symbol 118 MovieClip [orange_i_linkage] Frame 1
stop();
Symbol 118 MovieClip [orange_i_linkage] Frame 10
stop();
Symbol 120 MovieClip [orange_ii_linkage] Frame 1
stop();
Symbol 120 MovieClip [orange_ii_linkage] Frame 10
stop();
Symbol 122 MovieClip [orange_iii_linkage] Frame 1
stop();
Symbol 122 MovieClip [orange_iii_linkage] Frame 10
stop();
Symbol 124 MovieClip [orange_iiii_linkage] Frame 1
stop();
Symbol 124 MovieClip [orange_iiii_linkage] Frame 10
stop();
Symbol 152 MovieClip [purple_i_linkage] Frame 1
stop();
Symbol 152 MovieClip [purple_i_linkage] Frame 10
stop();
Symbol 154 MovieClip [purple_ii_linkage] Frame 1
stop();
Symbol 154 MovieClip [purple_ii_linkage] Frame 10
stop();
Symbol 156 MovieClip [purple_iii_linkage] Frame 1
stop();
Symbol 156 MovieClip [purple_iii_linkage] Frame 10
stop();
Symbol 158 MovieClip [purple_iiii_linkage] Frame 1
stop();
Symbol 158 MovieClip [purple_iiii_linkage] Frame 10
stop();
Symbol 184 MovieClip [red_i_linkage] Frame 1
stop();
Symbol 184 MovieClip [red_i_linkage] Frame 10
stop();
Symbol 186 MovieClip [red_ii_linkage] Frame 1
stop();
Symbol 186 MovieClip [red_ii_linkage] Frame 10
stop();
Symbol 188 MovieClip [red_iii_linkage] Frame 1
stop();
Symbol 188 MovieClip [red_iii_linkage] Frame 10
stop();
Symbol 190 MovieClip [red_iiii_linkage] Frame 1
stop();
Symbol 190 MovieClip [red_iiii_linkage] Frame 10
stop();
Symbol 253 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 1
stop();
Symbol 357 Button
on (press) {
_parent.gotoAndStop(213);
}
Symbol 360 Button
on (press) {
_parent.gotoAndStop(212);
}
Symbol 363 Button
on (press) {
start_is_pressed = true;
}
Symbol 364 MovieClip Frame 1
var start_is_pressed = false;
stop();
Symbol 369 Button
on (press) {
level_select_pressed = true;
}
Symbol 371 Button
on (press) {
level_select_pressed = true;
level_2_pressed = true;
}
Symbol 373 Button
on (press) {
level_select_pressed = true;
level_3_pressed = true;
}
Symbol 378 Button
on (press) {
gotoAndStop (211);
}
Symbol 399 Button
on (press) {
_parent.gotoAndStop(214);
}
Symbol 400 Button
on (press) {
_parent.gotoAndStop(211);
}
Symbol 406 Button
on (press) {
_parent.gotoAndStop(213);
}
Symbol 407 Button
on (press) {
_parent.gotoAndStop(215);
}
Symbol 411 Button
on (press) {
_parent.gotoAndStop(214);
}
Instance of Symbol 354 MovieClip "dancing_circle" in Symbol 423 MovieClip Frame 1
onClipEvent (load) {
var temp_pos = 0;
var temp_pos2 = 0;
var step = 0;
frame_number = 1;
}
onClipEvent (enterFrame) {
temp_pos2 = temp_pos2 - 100;
if (step == 0) {
if (temp_pos > _root.intro_startdrum.position) {
frame_number = 2;
step = 22;
}
} else if (step == 22) {
if ((temp_pos2 > 446.875) && (temp_pos2 < 933.75)) {
frame_number = frame_number + 1;
step = 3;
}
} else if (step == 1) {
if ((temp_pos2 < 466.875) && (temp_pos2 > 0)) {
frame_number = frame_number + 1;
step = 2;
}
} else if (step == 2) {
if ((temp_pos2 > 446.875) && (temp_pos2 < 933.75)) {
frame_number = frame_number + 1;
step = 3;
}
} else if (step == 3) {
if ((temp_pos2 > 933.75) && (temp_pos2 < 1400.625)) {
frame_number = frame_number + 1;
step = 4;
}
} else if (step == 4) {
if ((temp_pos2 > 1400.625) && (temp_pos2 < 1867.5)) {
frame_number = frame_number + 1;
step = 5;
}
} else if (step == 5) {
if ((temp_pos2 > 1867.5) && (temp_pos2 < 2334.375)) {
frame_number = frame_number + 1;
step = 6;
}
} else if (step == 6) {
if ((temp_pos2 > 2334.375) && (temp_pos2 < 2801.25)) {
frame_number = frame_number + 1;
step = 7;
}
} else if (step == 7) {
if ((temp_pos2 > 2801.25) && (temp_pos2 < 3268.125)) {
frame_number = frame_number + 1;
step = 8;
}
} else if (step == 8) {
if ((temp_pos2 > 3268.125) && (temp_pos2 < 3735)) {
frame_number = frame_number + 1;
step = 1;
}
}
if (frame_number >= 6) {
frame_number = 2;
}
_root.title_screen_mc.dancing_circle.gotoAndStop(frame_number);
temp_pos = _root.intro_startdrum.position;
temp_pos2 = _root.intro_synth.position;
}
Instance of Symbol 345 MovieClip "empty_mc" in Symbol 424 MovieClip Frame 1
onClipEvent (load) {
_root.intro_bass.start(0, 99);
_root.intro_bells.start(0, 99);
_root.intro_drum.start(0, 99);
_root.intro_echo.start(0, 99);
_root.intro_startdrum.start(0, 99);
_root.intro_synth.start(0, 99);
_root.intro_synthecho.start(0, 0);
_root.intro_bass.setVolume(0);
_root.intro_bells.setVolume(0);
_root.intro_drum.setVolume(0);
_root.intro_echo.setVolume(0);
_root.intro_synth.setVolume(0);
_root.intro_startdrum.setVolume(100);
_root.intro_synthecho.setVolume(100);
var step1 = true;
var step2 = false;
var step3 = false;
var step4 = false;
var step5 = false;
var step6 = false;
var prev_pos = -50;
var start_fade = false;
}
onClipEvent (enterFrame) {
if (step1 == true) {
if (prev_pos > _root.intro_startdrum.position) {
_root.intro_startdrum.setVolume(0);
_parent.speaker_mc.intro_startdrum_is_on = false;
_root.intro_bass.setVolume(100);
_parent.speaker_mc.intro_bass_is_on = true;
_root.intro_bells.setVolume(100);
_parent.speaker_mc.intro_bells_is_on = true;
_root.intro_drum.setVolume(100);
_parent.speaker_mc.intro_drum_is_on = true;
_root.intro_echo.setVolume(100);
_parent.speaker_mc.intro_echo_is_on = true;
_root.intro_synth.setVolume(100);
_parent.speaker_mc.intro_synth_is_on = true;
step1 = false;
step2 = true;
}
prev_pos = _root.intro_startdrum.position;
}
if (step2 == true) {
if (_root.intro_synth.position > 2027.5) {
_root.title_screen_mc.buttons_mc.gotoAndStop(2);
step2 = false;
step3 = true;
}
prev_pos = _root.intro_synth.position;
}
if (step3 == true) {
if (_root.title_screen_mc.buttons_mc.start_is_pressed == true) {
start_fade = true;
step3 = false;
step4 = true;
prev_pos = -50;
_parent.gotoAndPlay(216);
} else if (_parent.level_select_pressed == true) {
start_fade = true;
step3 = false;
step4 = true;
prev_pos = -50;
_parent.gotoAndPlay(296);
}
}
if (step4 == true) {
if (prev_pos > _root.intro_synth.position) {
_root.intro_synth.setVolume(0);
_parent.speaker_mc.intro_synth_is_on = false;
step4 = false;
step5 = true;
}
prev_pos = _root.intro_synth.position;
}
if (step5 == true) {
if (_root.intro_echo.position > 2802) {
_root.intro_startdrum.stop();
_root.intro_bass.stop();
_root.intro_bells.stop();
_root.intro_drum.stop();
_root.intro_echo.stop();
_parent.speaker_mc.intro_echo_is_on = false;
_root.intro_synth.stop();
_parent.speaker_mc.intro_synth_is_on = false;
step5 = false;
step6 = true;
}
prev_pos = _root.intro_echo.position;
}
if (step6 == true) {
if (_parent.level_2_pressed == true) {
_root.gotoAndStop(5 + _root.preloader_length);
} else if (_parent.level_3_pressed == true) {
_root.gotoAndStop(7 + _root.preloader_length);
} else {
_root.gotoAndStop(3 + _root.preloader_length);
}
}
if (start_fade == true) {
_root.intro_bass.setVolume(_root.intro_bass.getVolume() - 10);
_root.intro_bells.setVolume(_root.intro_bells.getVolume() - 10);
_root.intro_drum.setVolume(_root.intro_drum.getVolume() - 10);
if (_root.intro_bass.getVolume() == 0) {
_root.intro_bass.stop();
_parent.speaker_mc.intro_bass_is_on = false;
_root.intro_bells.stop();
_parent.speaker_mc.intro_bells_is_on = false;
_root.intro_drum.stop();
_parent.speaker_mc.intro_drum_is_on = false;
start_fade = false;
}
}
}
Instance of Symbol 354 MovieClip "dancing_circle" in Symbol 424 MovieClip Frame 1
onClipEvent (load) {
var temp_pos = 0;
var temp_pos2 = 0;
var step = 0;
frame_number = 1;
}
onClipEvent (enterFrame) {
temp_pos2 = temp_pos2 - 100;
if (step == 0) {
if (temp_pos > _root.intro_startdrum.position) {
frame_number = 2;
step = 22;
}
} else if (step == 22) {
if ((temp_pos2 > 446.875) && (temp_pos2 < 933.75)) {
frame_number = frame_number + 1;
step = 3;
}
} else if (step == 1) {
if ((temp_pos2 < 466.875) && (temp_pos2 > 0)) {
frame_number = frame_number + 1;
step = 2;
}
} else if (step == 2) {
if ((temp_pos2 > 446.875) && (temp_pos2 < 933.75)) {
frame_number = frame_number + 1;
step = 3;
}
} else if (step == 3) {
if ((temp_pos2 > 933.75) && (temp_pos2 < 1400.625)) {
frame_number = frame_number + 1;
step = 4;
}
} else if (step == 4) {
if ((temp_pos2 > 1400.625) && (temp_pos2 < 1867.5)) {
frame_number = frame_number + 1;
step = 5;
}
} else if (step == 5) {
if ((temp_pos2 > 1867.5) && (temp_pos2 < 2334.375)) {
frame_number = frame_number + 1;
step = 6;
}
} else if (step == 6) {
if ((temp_pos2 > 2334.375) && (temp_pos2 < 2801.25)) {
frame_number = frame_number + 1;
step = 7;
}
} else if (step == 7) {
if ((temp_pos2 > 2801.25) && (temp_pos2 < 3268.125)) {
frame_number = frame_number + 1;
step = 8;
}
} else if (step == 8) {
if ((temp_pos2 > 3268.125) && (temp_pos2 < 3735)) {
frame_number = frame_number + 1;
step = 1;
}
}
if (frame_number >= 6) {
frame_number = 2;
}
_root.title_screen_mc.dancing_circle.gotoAndStop(frame_number);
temp_pos = _root.intro_startdrum.position;
temp_pos2 = _root.intro_synth.position;
}
Instance of Symbol 345 MovieClip "speaker_mc" in Symbol 424 MovieClip Frame 1
onClipEvent (load) {
var intro_bass_is_on = false;
var intro_bass_amp = 0;
var intro_bells_is_on = false;
var intro_bells_amp = 0;
var intro_echo_is_on = false;
var intro_echo_amp = 0;
var intro_drum_is_on = false;
var intro_drum_amp = 0;
var intro_startdrum_is_on = true;
var intro_startdrum_amp = 0;
var intro_synth_is_on = false;
var intro_synth_amp = 0;
var intro_synthecho_is_on = true;
var intro_synthecho_amp = 0;
var intro_pos = 0;
var max_amp = 0;
var speaker_size = 0;
var effect_size = 0.1;
var sample_length = 3735;
var amp_array_length = 112;
}
onClipEvent (enterFrame) {
intro_pos = Math.round((_root.intro_startdrum.position / sample_length) * amp_array_length);
if (intro_startdrum_is_on == true) {
intro_startdrum_amp = _root.intro_startdrum.amplitude[intro_pos];
} else {
intro_startdrum_amp = 0;
}
if (intro_synthecho_is_on == true) {
intro_synthecho_amp = _root.intro_synthecho.amplitude[intro_pos];
} else {
intro_synthecho_amp = 0;
}
intro_pos = Math.round((_root.intro_synth.position / sample_length) * amp_array_length);
if (intro_echo_is_on == true) {
intro_echo_amp = _root.intro_echo.amplitude[intro_pos];
} else {
intro_echo_amp = 0;
}
if (intro_drum_is_on == true) {
intro_drum_amp = _root.intro_drum.amplitude[intro_pos];
} else {
intro_drum_amp = 0;
}
if (intro_bass_is_on == true) {
intro_bass_amp = _root.intro_bass.amplitude[intro_pos];
} else {
intro_bass_amp = 0;
}
if (intro_synth_is_on == true) {
intro_synth_amp = _root.intro_synth.amplitude[intro_pos];
} else {
intro_synth_amp = 0;
}
if (intro_bells_is_on == true) {
intro_bells_amp = _root.intro_bells.amplitude[intro_pos];
} else {
intro_bells_amp = 0;
}
max_amp = Math.max(intro_bass_amp, intro_bells_amp);
max_amp = Math.max(max_amp, intro_echo_amp);
max_amp = Math.max(max_amp, intro_drum_amp);
max_amp = Math.max(max_amp, intro_synth_amp);
max_amp = Math.max(max_amp, intro_synthecho_amp);
max_amp = Math.max(max_amp, intro_startdrum_amp);
speaker_size = 100 + (max_amp * effect_size);
_root.left_speaker._xscale = speaker_size;
_root.left_speaker._yscale = speaker_size;
_root.right_speaker._xscale = speaker_size;
_root.right_speaker._yscale = speaker_size;
}
Symbol 424 MovieClip Frame 211
var level_select_pressed = false;
stop();
Symbol 424 MovieClip Frame 212
stop();
Symbol 424 MovieClip Frame 213
stop();
Symbol 424 MovieClip Frame 214
stop();
Symbol 424 MovieClip Frame 215
stop();
Symbol 424 MovieClip Frame 295
stop();
Symbol 424 MovieClip Frame 377
stop();
Symbol 449 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 2
stop();
Symbol 449 MovieClip Frame 3
stop();
Symbol 460 MovieClip Frame 50
stop();
Instance of Symbol 345 MovieClip "first_mc" in Symbol 460 MovieClip Frame 50
onClipEvent (load) {
var score = _parent._parent.length_mc.score;
var new_score = 0;
var time_count = 0;
var sound_count = 0;
_parent.text_field.text = new_score;
}
onClipEvent (enterFrame) {
time_count = time_count + 1;
if ((time_count > 25) && (new_score < score)) {
if (sound_count == 0) {
_root.point.start(0, 99999);
sound_count = 1;
}
new_score = new_score + 100;
_parent.text_field.text = new_score;
}
if (new_score >= score) {
_root.point.stop();
_parent.gotoAndPlay(51);
}
}
Symbol 460 MovieClip Frame 79
stop();
Instance of Symbol 345 MovieClip in Symbol 460 MovieClip Frame 79
onClipEvent (load) {
_root.life_number = 0;
_root.score = _root.score + _parent._parent.length_mc.score;
_root.life_number = Math.round(((_parent._parent.length_mc.score + 0.001) / _parent._parent.length_mc.maxScore) * 8);
if (_root.life_number == 0) {
_root.life_number = 1;
}
if (_root.life_number > 8) {
_root.life_number = 8;
}
_parent.number_field.text = _root.life_number;
var count = 0;
var frame_count = 1;
}
onClipEvent (enterFrame) {
count = count + 1;
if ((count > 50) && (frame_count <= _root.life_number)) {
_root.life_bar.gotoAndStop(1 + frame_count);
_root.point.start(0, 0);
frame_count = frame_count + 1;
count = 30;
}
if ((frame_count > _root.life_number) && (count > 70)) {
_parent._parent.gotoAndPlay(153);
_parent.gotoAndStop(80);
}
}
Symbol 461 MovieClip Frame 1
_quality = "LOW";
_root.level_light1.gotoAndStop(2);
_root.level_light2.gotoAndStop(1);
_root.level_light3.gotoAndStop(1);
Instance of Symbol 345 MovieClip in Symbol 461 MovieClip Frame 1
onClipEvent (load) {
_root.digital_noise.setVolume(60);
_root.digital_noise.start(0, 0);
}
Instance of Symbol 449 MovieClip "good_ship" in Symbol 461 MovieClip Frame 85
onClipEvent (load) {
var bullet_count = -1;
var i = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(39) && (this._x < 246)) {
this._x = this._x + 4;
} else if (Key.isDown(68) && (this._x < 246)) {
this._x = this._x + 4;
}
if (Key.isDown(37) && (this._x > 54)) {
this._x = this._x - 4;
} else if (Key.isDown(65) && (this._x > 54)) {
this._x = this._x - 4;
}
if (Key.isDown(38) && (this._y > -316)) {
this._y = this._y - 4;
} else if (Key.isDown(87) && (this._y > -316)) {
this._y = this._y - 4;
}
if (Key.isDown(40) && (this._y < -4)) {
this._y = this._y + 4;
} else if (Key.isDown(83) && (this._y < -4)) {
this._y = this._y + 4;
}
if ((Key.isDown(32) && (bullet_count < 0)) && (_parent.first_mc.good_ship_blinking == false)) {
if (_parent.music_mc.fire_mode == true) {
_parent.attachMovie("fire_bullet_linkage", "bullet" + i, i + 950);
var bullet_name = ("bullet" + i);
_parent[bullet_name]._x = this._x;
_parent[bullet_name]._y = this._y - 30;
_parent[bullet_name]._xscale = 50;
_parent[bullet_name]._yscale = 50;
} else {
_parent.attachMovie("bullet_linkage", "bullet" + i, i + 950);
var bullet_name = ("bullet" + i);
_parent[bullet_name]._x = this._x;
_parent[bullet_name]._y = this._y - 30;
_parent[bullet_name]._xscale = 25;
_parent[bullet_name]._yscale = 25;
}
if (i == 10) {
i = 0;
}
i = i + 1;
bullet_count = 6;
}
bullet_count = bullet_count - 1;
var a = 1;
while (a <= 10) {
var bullet_name = ("bullet" + a);
_parent[bullet_name]._y = _parent[bullet_name]._y - 6;
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[bullet_name]);
}
if (_parent[bullet_name]._y < -350) {
removeMovieClip(_parent[bullet_name]);
}
a++;
}
}
Symbol 461 MovieClip Frame 151
stop();
Instance of Symbol 345 MovieClip in Symbol 461 MovieClip Frame 151
onClipEvent (load) {
var random_number = 0;
var i = 1;
var frequency_number = 95;
var enemy_count = 0;
var enemy_ii_speed = 5;
var loop_count = 3;
var shot_count = 30;
var shot_color = 0;
var shot_selection = 0;
var shot_reset = false;
var shot_number = 1;
}
onClipEvent (enterFrame) {
rand_number = Math.random() * 100;
if ((rand_number > frequency_number) && (enemy_count <= 0)) {
rand_number = Math.random() * 5;
if (rand_number < 1) {
_parent.attachMovie("blue_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 1;
} else if (rand_number < 2) {
_parent.attachMovie("red_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 2;
} else if (rand_number < 3) {
_parent.attachMovie("orange_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 3;
} else if (rand_number < 4) {
_parent.attachMovie("green_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 4;
} else {
_parent.attachMovie("purple_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 5;
}
_parent[enemy_name]._x = ((Math.random() * 160) + 20) + 50;
_parent[enemy_name]._y = -350;
_parent[enemy_name]._xscale = 35;
_parent[enemy_name]._yscale = 35;
enemy_count = 51;
i = i + 1;
}
enemy_count = enemy_count - 1;
if (i >= (loop_count + 1)) {
i = 1;
}
if (shot_count <= 0) {
shot_color = Math.random() * 5;
shot_selection = Math.round(Math.random() * loop_count);
shot_reset = true;
}
var a = 1;
while (a <= loop_count) {
var enemy_name = ("enemy_ii" + a);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[enemy_name]);
}
if ((_parent[enemy_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) && (_parent[enemy_name].is_hit2 != 1)) {
_parent.good_ship.gotoAndStop(2);
_parent.length_mc.score = _parent.length_mc.score - 500;
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
}
_parent[enemy_name]._y = _parent[enemy_name]._y + enemy_ii_speed;
var b = 1;
while (b <= 10) {
var bullet_name = ("bullet" + b);
var hit_test = _parent[bullet_name].hitTest(_parent[enemy_name]);
if (hit_test && (_parent[enemy_name].is_hit != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit = 1;
if (_parent.music_mc.fire_mode == true) {
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_ii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit2 = 1;
_parent.length_mc.score = _parent.length_mc.score + 400;
}
} else if (hit_test && (_parent[enemy_name].is_hit2 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_ii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit2 = 1;
_parent.length_mc.score = _parent.length_mc.score + 200;
}
b++;
}
if ((((shot_count <= 0) && (shot_color < 1)) && (shot_selection == a)) && (_parent[enemy_name].no_shot != 1)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot2" + shot_number, shot_number + 220);
var shot_name = ("enemy_shot2" + shot_number);
_parent[shot_name]._x = _parent[enemy_name]._x;
_parent[shot_name]._y = _parent[enemy_name]._y + 6;
shot_color = 50;
shot_selection = 123335 /* 0x01E1C7 */;
shot_number = shot_number + 1;
}
if (_parent[enemy_name]._y > 10) {
removeMovieClip(_parent[enemy_name]);
}
a++;
}
var c = 1;
while (c <= 10) {
var shot_name = ("enemy_shot2" + c);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[shot_name]);
}
if (_parent[shot_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) {
removeMovieClip(_parent[shot_name]);
_parent.good_ship.gotoAndStop(2);
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
_parent.length_mc.score = _parent.length_mc.score - 500;
}
_parent[shot_name]._y = _parent[shot_name]._y + 10;
c++;
}
if (shot_reset == true) {
shot_count = 11;
shot_reset = false;
}
if (shot_number == 11) {
shot_number = 1;
}
shot_count = shot_count - 1;
}
Instance of Symbol 345 MovieClip in Symbol 461 MovieClip Frame 151
onClipEvent (load) {
var random_number = 0;
var i = 1;
var frequency_number = 96.5;
var enemy_count = 0;
var enemy_iii_speed = 4;
var loop_count = 3;
var shot_count = 30;
var shot_color = 0;
var shot_selection = 0;
var shot_reset = false;
var shot_number = 1;
}
onClipEvent (enterFrame) {
rand_number = Math.random() * 100;
if ((rand_number > frequency_number) && (enemy_count <= 0)) {
rand_number = Math.random() * 5;
if (rand_number < 1) {
_parent.attachMovie("blue_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 1;
} else if (rand_number < 2) {
_parent.attachMovie("red_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 2;
} else if (rand_number < 3) {
_parent.attachMovie("orange_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 3;
} else if (rand_number < 4) {
_parent.attachMovie("green_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 4;
} else {
_parent.attachMovie("purple_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 5;
}
_parent[enemy_name]._x = ((Math.random() * 140) + 30) + 50;
_parent[enemy_name]._y = -350;
_parent[enemy_name]._xscale = 45;
_parent[enemy_name]._yscale = 45;
enemy_count = 61;
i = i + 1;
}
enemy_count = enemy_count - 1;
if (i >= (loop_count + 1)) {
i = 1;
}
if (shot_count <= 0) {
shot_color = Math.random() * 5;
shot_selection = Math.round(Math.random() * loop_count);
shot_reset = true;
}
var a = 1;
while (a <= loop_count) {
var enemy_name = ("enemy_iii" + a);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[enemy_name]);
}
if ((_parent[enemy_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) && (_parent[enemy_name].is_hit3 != 1)) {
_parent.good_ship.gotoAndStop(2);
_parent.length_mc.score = _parent.length_mc.score - 500;
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
}
_parent[enemy_name]._y = _parent[enemy_name]._y + enemy_iii_speed;
var b = 1;
while (b <= 10) {
var bullet_name = ("bullet" + b);
var hit_test = _parent[bullet_name].hitTest(_parent[enemy_name]);
if (hit_test && (_parent[enemy_name].is_hit != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit = 1;
} else if (hit_test && (_parent[enemy_name].is_hit2 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit2 = 1;
if (_parent.music_mc.fire_mode == true) {
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_iii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit3 = 1;
_parent.length_mc.score = _parent.length_mc.score + 600;
}
} else if (hit_test && (_parent[enemy_name].is_hit3 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_iii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit3 = 1;
_parent.length_mc.score = _parent.length_mc.score + 300;
}
b++;
}
if ((((shot_count <= 0) && (shot_color < 1)) && (shot_selection == a)) && (_parent[enemy_name].no_shot != 1)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot3" + shot_number, shot_number + 240);
var shot_name = ("enemy_shot3" + shot_number);
_parent[shot_name]._x = _parent[enemy_name]._x;
_parent[shot_name]._y = _parent[enemy_name]._y + 6;
shot_color = 50;
shot_selection = 123335 /* 0x01E1C7 */;
shot_number = shot_number + 1;
}
if (_parent[enemy_name]._y > 10) {
removeMovieClip(_parent[enemy_name]);
}
a++;
}
var c = 1;
while (c <= 10) {
var shot_name = ("enemy_shot3" + c);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[shot_name]);
}
if (_parent[shot_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) {
removeMovieClip(_parent[shot_name]);
_parent.good_ship.gotoAndStop(2);
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
_parent.length_mc.score = _parent.length_mc.score - 500;
}
_parent[shot_name]._y = _parent[shot_name]._y + 10;
c++;
}
if (shot_reset == true) {
shot_count = 11;
shot_reset = false;
}
if (shot_number == 11) {
shot_number = 1;
}
shot_count = shot_count - 1;
}
Instance of Symbol 345 MovieClip in Symbol 461 MovieClip Frame 151
onClipEvent (load) {
var random_number = 0;
var i = 1;
var frequency_number = 98;
var enemy_count = 0;
var enemy_iiii_speed = 3;
var loop_count = 3;
var shot_count = 30;
var shot_color = 0;
var shot_selection = 0;
var shot_reset = false;
var shot_number = 1;
}
onClipEvent (enterFrame) {
rand_number = Math.random() * 100;
if ((rand_number > frequency_number) && (enemy_count <= 0)) {
rand_number = Math.random() * 5;
if (rand_number < 1) {
_parent.attachMovie("blue_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 1;
} else if (rand_number < 2) {
_parent.attachMovie("red_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 2;
} else if (rand_number < 3) {
_parent.attachMovie("orange_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 3;
} else if (rand_number < 4) {
_parent.attachMovie("green_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 4;
} else {
_parent.attachMovie("purple_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 5;
}
_parent[enemy_name]._x = ((Math.random() * 120) + 40) + 50;
_parent[enemy_name]._y = -350;
_parent[enemy_name]._xscale = 55;
_parent[enemy_name]._yscale = 55;
enemy_count = 71;
i = i + 1;
}
enemy_count = enemy_count - 1;
if (i >= (loop_count + 1)) {
i = 1;
}
if (shot_count <= 0) {
shot_color = Math.random() * 5;
shot_selection = Math.round(Math.random() * loop_count);
shot_reset = true;
}
var a = 1;
while (a <= loop_count) {
var enemy_name = ("enemy_iiii" + a);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[enemy_name]);
}
if ((_parent[enemy_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) && (_parent[enemy_name].is_hit4 != 1)) {
_parent.good_ship.gotoAndStop(2);
_parent.length_mc.score = _parent.length_mc.score - 500;
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
}
_parent[enemy_name]._y = _parent[enemy_name]._y + enemy_iiii_speed;
var b = 1;
while (b <= 10) {
var bullet_name = ("bullet" + b);
var hit_test = _parent[bullet_name].hitTest(_parent[enemy_name]);
if (hit_test && (_parent[enemy_name].is_hit != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit = 1;
} else if (hit_test && (_parent[enemy_name].is_hit2 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit2 = 1;
} else if (hit_test && (_parent[enemy_name].is_hit3 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit3 = 1;
if (_parent.music_mc.fire_mode == true) {
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_iiii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit4 = 1;
_parent.length_mc.score = _parent.length_mc.score + 800;
}
} else if (hit_test && (_parent[enemy_name].is_hit4 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_iiii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit4 = 1;
_parent.length_mc.score = _parent.length_mc.score + 400;
}
b++;
}
if ((((shot_count <= 0) && (shot_color < 1)) && (shot_selection == a)) && (_parent[enemy_name].no_shot != 1)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot4" + shot_number, shot_number + 260);
var shot_name = ("enemy_shot4" + shot_number);
_parent[shot_name]._x = _parent[enemy_name]._x;
_parent[shot_name]._y = _parent[enemy_name]._y + 6;
shot_color = 50;
shot_selection = 123335 /* 0x01E1C7 */;
shot_number = shot_number + 1;
}
if (_parent[enemy_name]._y > 10) {
removeMovieClip(_parent[enemy_name]);
}
a++;
}
var c = 1;
while (c <= 10) {
var shot_name = ("enemy_shot4" + c);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[shot_name]);
}
if (_parent[shot_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) {
removeMovieClip(_parent[shot_name]);
_parent.good_ship.gotoAndStop(2);
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
_parent.length_mc.score = _parent.length_mc.score - 500;
}
_parent[shot_name]._y = _parent[shot_name]._y + 10;
c++;
}
if (shot_reset == true) {
shot_count = 11;
shot_reset = false;
}
if (shot_number == 11) {
shot_number = 1;
}
shot_count = shot_count - 1;
}
Instance of Symbol 345 MovieClip "first_mc" in Symbol 461 MovieClip Frame 151
onClipEvent (load) {
var random_number = 0;
var i = 1;
var frequency_number = 90;
var enemy_count = 0;
var enemy_i_speed = 6;
var loop_count = 3;
var shot_count = 30;
var shot_color = 0;
var shot_selection = 0;
var shot_reset = false;
var shot_number = 1;
var good_ship_hit = -1;
var good_ship_blinking = false;
}
onClipEvent (enterFrame) {
rand_number = Math.random() * 100;
if ((rand_number > frequency_number) && (enemy_count <= 0)) {
rand_number = Math.random() * 5;
if (rand_number < 1) {
_parent.attachMovie("blue_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 1;
} else if (rand_number < 2) {
_parent.attachMovie("red_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 2;
} else if (rand_number < 3) {
_parent.attachMovie("orange_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 3;
} else if (rand_number < 4) {
_parent.attachMovie("green_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 4;
} else {
_parent.attachMovie("purple_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 5;
}
_parent[enemy_name]._x = ((Math.random() * 180) + 10) + 50;
_parent[enemy_name]._y = -350;
_parent[enemy_name]._xscale = 25;
_parent[enemy_name]._yscale = 25;
enemy_count = 41;
i = i + 1;
}
enemy_count = enemy_count - 1;
if (i >= (loop_count + 1)) {
i = 1;
}
if (shot_count <= 0) {
shot_color = Math.random() * 5;
shot_selection = Math.round(Math.random() * loop_count);
shot_reset = true;
}
var a = 1;
while (a <= loop_count) {
var enemy_name = ("enemy_i" + a);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[enemy_name]);
}
if ((_parent[enemy_name].hitTest(_parent.good_ship) && (good_ship_hit == -1)) && (_parent[enemy_name].is_hit != 1)) {
_parent.good_ship.gotoAndStop(2);
_parent.length_mc.score = _parent.length_mc.score - 500;
good_ship_blinking = true;
good_ship_hit = 40;
}
_parent[enemy_name]._y = _parent[enemy_name]._y + enemy_i_speed;
var b = 1;
while (b <= 10) {
var bullet_name = ("bullet" + b);
if (_parent[bullet_name].hitTest(_parent[enemy_name]) && (_parent[enemy_name].is_hit != 1)) {
if (_parent.music_mc.fire_mode == false) {
removeMovieClip(_parent[bullet_name]);
_parent.length_mc.score = _parent.length_mc.score + -100;
}
_parent[enemy_name].is_hit = 1;
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_i_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent.length_mc.score = _parent.length_mc.score + 200;
}
b++;
}
if ((((shot_count <= 0) && (shot_color < 1)) && (shot_selection == a)) && (_parent[enemy_name].no_shot != 1)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot" + shot_number, shot_number + 200);
var shot_name = ("enemy_shot" + shot_number);
_parent[shot_name]._x = _parent[enemy_name]._x;
_parent[shot_name]._y = _parent[enemy_name]._y + 6;
shot_color = 50;
shot_selection = 123335 /* 0x01E1C7 */;
shot_number = shot_number + 1;
}
if (_parent[enemy_name]._y > 10) {
removeMovieClip(_parent[enemy_name]);
}
a++;
}
var c = 1;
while (c <= 10) {
var shot_name = ("enemy_shot" + c);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[shot_name]);
}
if (_parent[shot_name].hitTest(_parent.good_ship) && (good_ship_hit == -1)) {
removeMovieClip(_parent[shot_name]);
_parent.good_ship.gotoAndStop(2);
good_ship_blinking = true;
good_ship_hit = 40;
_parent.length_mc.score = _parent.length_mc.score - 500;
}
_parent[shot_name]._y = _parent[shot_name]._y + 10;
c++;
}
if (good_ship_hit >= 1) {
good_ship_hit = good_ship_hit - 1;
}
if ((good_ship_hit == 0) && (_parent.music_mc.fire_mode == false)) {
_parent.good_ship.gotoAndStop(1);
good_ship_blinking = false;
_parent.music_mc.punished = false;
good_ship_hit = -1;
} else if ((good_ship_hit == 0) && (_parent.music_mc.fire_mode == true)) {
_parent.good_ship.gotoAndStop(3);
good_ship_blinking = false;
_parent.music_mc.punished = false;
good_ship_hit = -1;
}
if (shot_reset == true) {
shot_count = 11;
shot_reset = false;
}
if (shot_number == 11) {
shot_number = 1;
}
shot_count = shot_count - 1;
}
Instance of Symbol 345 MovieClip "speakers_mc" in Symbol 461 MovieClip Frame 151
onClipEvent (load) {
var song1_bass_is_on = false;
var song1_bass_amp = 0;
var song1_bells_is_on = false;
var song1_bells_amp = 0;
var song1_chords_is_on = false;
var song1_chords_amp = 0;
var song1_drums_is_on = false;
var song1_drums_amp = 0;
var song1_synth_is_on = false;
var song1_synth_amp = 0;
var song1_pos = 0;
var max_amp = 0;
var speaker_size = 0;
var effect_size = 0.1;
var sample_length = 7471;
var amp_array_length = 224;
}
onClipEvent (enterFrame) {
song1_pos = Math.round((_root.song1_drums.position / sample_length) * amp_array_length);
if (song1_bass_is_on == true) {
song1_bass_amp = _root.song1_bass.amplitude[song1_pos];
if (song1_bass_amp >= 35) {
_root.light5.gotoAndPlay(2);
_root.light3.gotoAndPlay(2);
}
} else {
song1_bass_amp = 0;
}
if (song1_bells_is_on == true) {
song1_bells_amp = _root.song1_bells.amplitude[song1_pos];
if (song1_bells_amp >= 10) {
_root.light1.gotoAndPlay(2);
_root.light8.gotoAndPlay(2);
}
} else {
song1_bells_amp = 0;
}
if (song1_chords_is_on == true) {
song1_chords_amp = _root.song1_chords.amplitude[song1_pos];
if (song1_chords_amp >= 20) {
_root.light2.gotoAndPlay(2);
_root.light10.gotoAndPlay(2);
}
} else {
song1_chords_amp = 0;
}
if (song1_drums_is_on == true) {
song1_drums_amp = _root.song1_drums.amplitude[song1_pos];
if (song1_drums_amp >= 25) {
_root.light6.gotoAndPlay(2);
_root.light4.gotoAndPlay(2);
}
} else {
song1_drums_amp = 0;
}
if (song1_synth_is_on == true) {
song1_synth_amp = _root.song1_synth.amplitude[song1_pos];
if (song1_synth_amp >= 35) {
_root.light9.gotoAndPlay(2);
_root.light7.gotoAndPlay(2);
}
} else {
song1_synth_amp = 0;
}
max_amp = Math.max(song1_bass_amp, song1_bells_amp);
max_amp = Math.max(max_amp, song1_chords_amp);
max_amp = Math.max(max_amp, song1_drums_amp);
speaker_size = 100 + (max_amp * effect_size);
_root.left_speaker._xscale = speaker_size;
_root.left_speaker._yscale = speaker_size;
_root.right_speaker._xscale = speaker_size;
_root.right_speaker._yscale = speaker_size;
if (_parent.music_mc.fire_mode == true) {
_root.fire_light.gotoAndStop(2);
} else {
_root.fire_light.gotoAndStop(1);
}
}
Instance of Symbol 345 MovieClip "music_mc" in Symbol 461 MovieClip Frame 151
onClipEvent (load) {
_root.song1_drums.start(0, 99);
_root.song1_drums.setVolume(0);
_root.song1_bass.start(0, 99);
_root.song1_bass.setVolume(0);
_root.song1_bells.start(0, 99);
_root.song1_bells.setVolume(0);
_root.song1_chords.start(0, 99);
_root.song1_chords.setVolume(0);
_root.song1_synth.start(0, 99);
_root.song1_synth.setVolume(0);
var is_ship_hit = false;
var enemy_i_hit = 0;
var enemy_ii_hit = 0;
var enemy_iii_hit = 0;
var enemy_iiii_hit = 0;
var blue_counter = 0;
var red_counter = 0;
var orange_counter = 0;
var green_counter = 0;
var purple_counter = 0;
var sample_length = 7471;
var song_pos = 0;
var step_off = 0;
var punished = false;
var fire_mode = false;
var fire_change = 0;
}
onClipEvent (enterFrame) {
if (enemy_i_hit != 0) {
if (enemy_i_hit == 1) {
blue_counter = blue_counter + 1;
enemy_i_hit = 0;
}
if (enemy_i_hit == 2) {
red_counter = red_counter + 1;
enemy_i_hit = 0;
}
if (enemy_i_hit == 3) {
orange_counter = orange_counter + 1;
enemy_i_hit = 0;
}
if (enemy_i_hit == 4) {
green_counter = green_counter + 1;
enemy_i_hit = 0;
}
if (enemy_i_hit == 5) {
purple_counter = purple_counter + 1;
enemy_i_hit = 0;
}
}
if (enemy_ii_hit != 0) {
if (enemy_ii_hit == 1) {
blue_counter = blue_counter + 2;
enemy_ii_hit = 0;
}
if (enemy_ii_hit == 2) {
red_counter = red_counter + 2;
enemy_ii_hit = 0;
}
if (enemy_ii_hit == 3) {
orange_counter = orange_counter + 2;
enemy_ii_hit = 0;
}
if (enemy_ii_hit == 4) {
green_counter = green_counter + 2;
enemy_ii_hit = 0;
}
if (enemy_ii_hit == 5) {
purple_counter = purple_counter + 2;
enemy_ii_hit = 0;
}
}
if (enemy_iii_hit != 0) {
if (enemy_iii_hit == 1) {
blue_counter = blue_counter + 3;
enemy_iii_hit = 0;
}
if (enemy_iii_hit == 2) {
red_counter = red_counter + 3;
enemy_iii_hit = 0;
}
if (enemy_iii_hit == 3) {
orange_counter = orange_counter + 3;
enemy_iii_hit = 0;
}
if (enemy_iii_hit == 4) {
green_counter = green_counter + 3;
enemy_iii_hit = 0;
}
if (enemy_iii_hit == 5) {
purple_counter = purple_counter + 3;
enemy_iii_hit = 0;
}
}
if (enemy_iiii_hit != 0) {
if (enemy_iiii_hit == 1) {
blue_counter = blue_counter + 4;
enemy_iiii_hit = 0;
}
if (enemy_iiii_hit == 2) {
red_counter = red_counter + 4;
enemy_iiii_hit = 0;
}
if (enemy_iiii_hit == 3) {
orange_counter = orange_counter + 4;
enemy_iiii_hit = 0;
}
if (enemy_iiii_hit == 4) {
green_counter = green_counter + 4;
enemy_iiii_hit = 0;
}
if (enemy_iiii_hit == 5) {
purple_counter = purple_counter + 4;
enemy_iiii_hit = 0;
}
}
if (blue_counter > 0) {
_root.song1_drums.setVolume(100);
_parent.speakers_mc.song1_drums_is_on = true;
} else {
_root.song1_drums.setVolume(0);
_parent.speakers_mc.song1_drums_is_on = false;
}
if (red_counter > 0) {
_root.song1_bass.setVolume(100);
_parent.speakers_mc.song1_bass_is_on = true;
} else {
_root.song1_bass.setVolume(0);
_parent.speakers_mc.song1_bass_is_on = false;
}
if (orange_counter > 0) {
_root.song1_bells.setVolume(100);
_parent.speakers_mc.song1_bells_is_on = true;
} else {
_root.song1_bells.setVolume(0);
_parent.speakers_mc.song1_bells_is_on = false;
}
if (green_counter > 0) {
_root.song1_chords.setVolume(100);
_parent.speakers_mc.song1_chords_is_on = true;
} else {
_root.song1_chords.setVolume(0);
_parent.speakers_mc.song1_chords_is_on = false;
}
if (purple_counter > 0) {
_root.song1_synth.setVolume(100);
_parent.speakers_mc.song1_synth_is_on = true;
} else {
_root.song1_synth.setVolume(0);
_parent.speakers_mc.song1_synth_is_on = false;
}
if (blue_counter > 8) {
blue_counter = 8;
}
if (red_counter > 8) {
red_counter = 8;
}
if (orange_counter > 8) {
orange_counter = 8;
}
if (green_counter > 8) {
green_counter = 8;
}
if (purple_counter > 8) {
purple_counter = 8;
}
_root.blue_bar.gotoAndStop(blue_counter + 1);
_root.red_bar.gotoAndStop(red_counter + 1);
_root.orange_bar.gotoAndStop(orange_counter + 1);
_root.green_bar.gotoAndStop(green_counter + 1);
_root.purple_bar.gotoAndStop(purple_counter + 1);
song_pos = _root.song1_drums.position;
if ((song_pos < (sample_length / 4)) && (step_off != 1)) {
step_off = 1;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length / 2)) && (song_pos >= (sample_length / 4))) && (step_off != 2)) {
step_off = 2;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.75)) && (song_pos >= (sample_length / 2))) && (step_off != 3)) {
step_off = 3;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if ((song_pos >= (sample_length * 0.75)) && (step_off != 4)) {
step_off = 4;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
}
if ((_parent.first_mc.good_ship_blinking == true) && (punished == false)) {
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
punished = true;
}
if (blue_counter < 0) {
blue_counter = 0;
}
if (red_counter < 0) {
red_counter = 0;
}
if (orange_counter < 0) {
orange_counter = 0;
}
if (green_counter < 0) {
green_counter = 0;
}
if (purple_counter < 0) {
purple_counter = 0;
}
if (((((blue_counter > 0) && (red_counter > 0)) && (orange_counter > 0)) && (green_counter > 0)) && (purple_counter > 0)) {
fire_mode = true;
} else {
fire_mode = false;
}
if ((fire_mode == true) && (fire_change == 0)) {
_parent.good_ship.gotoAndStop(3);
fire_change = 1;
} else if ((fire_mode == false) && (fire_change == 1)) {
_parent.good_ship.gotoAndStop(1);
fire_change = 0;
}
}
Instance of Symbol 345 MovieClip "length_mc" in Symbol 461 MovieClip Frame 151
onClipEvent (load) {
var frame_trig = 0;
var frame_limit = 1000;
var current_frame = 0;
var score = 0;
var maxScore = 15000;
var removal_done = 0;
}
onClipEvent (enterFrame) {
current_frame = current_frame + 1;
_root.progress_bar.gotoAndStop(Math.round((current_frame / frame_limit) * 200));
if ((current_frame > frame_limit) && (frame_trig == 0)) {
_parent.attachMovie("mask_2_linkage", "mask", 3000);
_parent.mask._x = 150;
_parent.mask._y = -160;
frame_trig = 1;
}
if ((frame_trig > 0) && (frame_trig < 100)) {
_parent.mask._alpha = frame_trig + 1;
frame_trig = frame_trig + 1;
}
if (frame_trig >= 100) {
if (removal_done == 2) {
_parent.gotoAndStop(152);
removeMovieClip(_parent.mask);
frame_trig = -120;
}
removal_done = removal_done + 1;
}
if (score < 0) {
score = 0;
}
}
Instance of Symbol 345 MovieClip in Symbol 461 MovieClip Frame 153
onClipEvent (load) {
var counter = 1;
}
onClipEvent (enterFrame) {
if (counter <= 50) {
if (_parent.speakers_mc.song1_bass_is_on == true) {
_root.song1_bass.setVolume(_root.song1_bass.getVolume() - 2);
}
if (_parent.speakers_mc.song1_bells_is_on == true) {
_root.song1_bells.setVolume(_root.song1_bells.getVolume() - 2);
}
if (_parent.speakers_mc.song1_chords_is_on == true) {
_root.song1_chords.setVolume(_root.song1_chords.getVolume() - 2);
}
if (_parent.speakers_mc.song1_drums_is_on == true) {
_root.song1_drums.setVolume(_root.song1_drums.getVolume() - 2);
}
if (_parent.speakers_mc.song1_synth_is_on == true) {
_root.song1_synth.setVolume(_root.song1_synth.getVolume() - 2);
}
counter = counter + 1;
} else if (counter < 100) {
_root.song1_bass.stop();
_root.song1_bells.stop();
_root.song1_chords.stop();
_root.song1_drums.stop();
_root.song1_synth.stop();
_root.blue_bar.gotoAndStop(1);
_root.red_bar.gotoAndStop(1);
_root.orange_bar.gotoAndStop(1);
_root.green_bar.gotoAndStop(1);
_root.purple_bar.gotoAndStop(1);
counter = 500;
}
}
Symbol 461 MovieClip Frame 205
_root.gotoAndPlay(4 + _root.preloader_length);
Symbol 476 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 2
stop();
Symbol 476 MovieClip Frame 3
stop();
Instance of Symbol 345 MovieClip in Symbol 476 MovieClip Frame 3
onClipEvent (load) {
var counter = 1;
var blow_up_counter = 0;
var i = 1;
}
onClipEvent (enterFrame) {
if (counter <= 75) {
if (_parent._parent.sound_mc.boss3_first_is_on == true) {
_root.boss3_first.setVolume(_root.boss3_first.getVolume() - 1);
}
if (_parent._parent.sound_mc.boss3_second_is_on == true) {
_root.boss3_second.setVolume(_root.boss3_second.getVolume() - 1);
}
counter = counter + 1;
} else if (counter < 100) {
_root.boss3_first.stop();
_root.boss3_second.stop();
counter = 500;
}
if (blow_up_counter <= 0) {
blow_up_counter = 3;
if (i >= 8) {
i = 1;
}
_parent.attachMovie("blow_up_linkage", "blowup" + i, 3000 + i);
var blow_up_name = ("blowup" + i);
_parent[blow_up_name]._x = (Math.random() * 200) - 100;
_parent[blow_up_name]._y = (Math.random() * 200) - 100;
var scale = ((Math.random() * 90) + 110);
_parent[blow_up_name]._xscale = scale;
_parent[blow_up_name]._yscale = scale;
i = i + 1;
}
blow_up_counter = blow_up_counter - 1;
}
Symbol 476 MovieClip Frame 4
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 108
_root.level_end.start(0.5, 0);
_parent.sound_mc.level_end_trigger = true;
Symbol 478 MovieClip Frame 109
stop();
Symbol 479 MovieClip Frame 1
stop();
Symbol 479 MovieClip Frame 60
_root.progress_bar.gotoAndStop(1);
_root.life_bar.gotoAndStop(1);
_root.gotoAndPlay(5 + _root.preloader_length);
Symbol 485 MovieClip Frame 27
_root.game_over.start(0, 0);
Symbol 485 MovieClip Frame 43
if ((_root.game_over.position > 3700) || (_root.game_over.position == 0)) {
_root.progress_bar.gotoAndStop(1);
_root.life_bar.gotoAndStop(1);
_root.gotoAndPlay(1 + _root.preloader_length);
} else {
gotoAndPlay (42);
}
Instance of Symbol 476 MovieClip "sun_mc" in Symbol 486 MovieClip Frame 1
onClipEvent (load) {
var going_right = false;
var count = 0;
var turn = 0;
var on_off = 0;
}
onClipEvent (enterFrame) {
count = count + 1;
if (going_right == false) {
this._x = this._x - 3;
if (this._x < -54) {
going_right = true;
}
} else {
this._x = this._x + 3;
if (this._x > 54) {
going_right = false;
}
}
if ((count > 130) && (on_off < 4)) {
if (turn == 0) {
_parent.attachMovie("smiley_linkage", "smiley1", 200);
_parent.smiley1._x = this._x;
_parent.smiley1._y = this._y;
turn = 1;
on_off = on_off + 1;
} else if (turn == 1) {
_parent.attachMovie("smiley_linkage", "smiley2", 201);
_parent.smiley2._x = this._x;
_parent.smiley2._y = this._y;
turn = 2;
on_off = on_off + 1;
} else if (turn == 2) {
_parent.attachMovie("smiley_linkage", "smiley3", 202);
_parent.smiley3._x = this._x;
_parent.smiley3._y = this._y;
turn = 3;
on_off = on_off + 1;
} else if (turn == 3) {
_parent.attachMovie("smiley_linkage", "smiley4", 203);
_parent.smiley4._x = this._x;
_parent.smiley4._y = this._y;
turn = 4;
on_off = on_off + 1;
}
count = 80;
}
}
Instance of Symbol 345 MovieClip "sound_mc" in Symbol 486 MovieClip Frame 1
onClipEvent (load) {
_root.boss3_first.start(0, 999);
_root.boss3_first.setVolume(100);
_root.boss3_second.start(0, 999);
_root.boss3_second.setVolume(0);
var boss3_first_is_on = true;
var boss3_first_amp = 0;
var boss3_second_is_on = false;
var boss3_second_amp = 0;
var song_pos = 0;
var max_amp = 0;
var speaker_size = 0;
var effect_size = 0.1;
var sample_length = 12000;
var amp_array_length = 360;
var temp_pos = -3;
var mask_done = false;
var level_end_trigger = false;
var last_step = false;
}
onClipEvent (enterFrame) {
song_pos = Math.round((_root.boss3_first.position / sample_length) * amp_array_length);
if (boss3_first_is_on == true) {
boss3_first_amp = _root.boss3_first.amplitude[song_pos];
} else {
boss3_first_amp = 0;
}
if (boss3_second_is_on == true) {
boss3_second_amp = _root.boss3_second.amplitude[song_pos];
if (boss3_second_amp >= 50) {
_root.light1.gotoAndPlay(2);
_root.light2.gotoAndPlay(2);
_root.light3.gotoAndPlay(2);
_root.light4.gotoAndPlay(2);
_root.light5.gotoAndPlay(2);
_root.light6.gotoAndPlay(2);
_root.light7.gotoAndPlay(2);
_root.light8.gotoAndPlay(2);
_root.light9.gotoAndPlay(2);
_root.light10.gotoAndPlay(2);
}
} else {
boss3_second_amp = 0;
}
max_amp = Math.max(boss3_first_amp, boss3_second_amp);
speaker_size = 100 + (max_amp * effect_size);
_root.left_speaker._xscale = speaker_size;
_root.left_speaker._yscale = speaker_size;
_root.right_speaker._xscale = speaker_size;
_root.right_speaker._yscale = speaker_size;
if ((temp_pos == _root.level_end.duration) && (mask_done == false)) {
mask_done = true;
_parent.mask_mc.gotoAndPlay(2);
}
if (((_root.level_end.position >= 1200) && (_root.level_end.position < 5000)) && (level_end_trigger == true)) {
_parent.gotoAndStop(127);
last_step = true;
} else if (last_step == true) {
temp_pos = _root.level_end.position;
}
}
Symbol 486 MovieClip Frame 126
stop();
Instance of Symbol 449 MovieClip "good_ship" in Symbol 486 MovieClip Frame 126
onClipEvent (load) {
var bullet_count = -1;
var i = 1;
var stop_movement = false;
}
onClipEvent (enterFrame) {
if (stop_movement == false) {
if (Key.isDown(39) && (this._x < 98)) {
this._x = this._x + 4;
} else if (Key.isDown(68) && (this._x < 98)) {
this._x = this._x + 4;
}
if (Key.isDown(37) && (this._x > -96)) {
this._x = this._x - 4;
} else if (Key.isDown(65) && (this._x > -96)) {
this._x = this._x - 4;
}
if (Key.isDown(38) && (this._y > -80)) {
this._y = this._y - 4;
} else if (Key.isDown(87) && (this._y > -80)) {
this._y = this._y - 4;
}
if (Key.isDown(40) && (this._y < 232)) {
this._y = this._y + 4;
} else if (Key.isDown(83) && (this._y < 232)) {
this._y = this._y + 4;
}
if (((Key.isDown(32) && (bullet_count < 0)) && (_parent.hit_mc.good_ship_hit == false)) && (_parent.hit_mc.not_end == true)) {
if (_parent.music_mc.fire_mode == true) {
_parent.attachMovie("fire_bullet_linkage", "bullet" + i, i + 950);
var bullet_name = ("bullet" + i);
_parent[bullet_name]._x = this._x;
_parent[bullet_name]._y = this._y - 30;
_parent[bullet_name]._xscale = 50;
_parent[bullet_name]._yscale = 50;
} else {
_parent.attachMovie("bullet_linkage", "bullet" + i, i + 950);
var bullet_name = ("bullet" + i);
_parent[bullet_name]._x = this._x;
_parent[bullet_name]._y = this._y - 30;
_parent[bullet_name]._xscale = 25;
_parent[bullet_name]._yscale = 25;
}
if (i == 10) {
i = 0;
}
i = i + 1;
bullet_count = 6;
}
}
bullet_count = bullet_count - 1;
}
Instance of Symbol 345 MovieClip "hit_mc" in Symbol 486 MovieClip Frame 126
onClipEvent (load) {
var smiley1_x_move = 2;
var smiley1_y_move = 2;
var smiley2_x_move = -2;
var smiley2_y_move = 2;
var smiley3_x_move = 2;
var smiley3_y_move = 2;
var smiley4_x_move = -2;
var smiley4_y_move = 2;
var ship_damaged = 0;
var sun_life = 10;
var sun_hit_count = 0;
var good_ship_hit = false;
var sun_death = 50;
var sun_death_2 = (100 / sun_death);
var not_end = true;
var fade_over = false;
var sound_trigger = false;
}
onClipEvent (enterFrame) {
if (_parent.smiley1._x > 96) {
smiley1_x_move = -2;
}
if (_parent.smiley1._x < -94) {
smiley1_x_move = 2;
}
if (_parent.smiley1._y > 230) {
smiley1_y_move = -2;
}
if (_parent.smiley1._y < -78) {
smiley1_y_move = 2;
}
if (_parent.smiley2._x > 96) {
smiley2_x_move = -2;
}
if (_parent.smiley2._x < -94) {
smiley2_x_move = 2;
}
if (_parent.smiley2._y > 230) {
smiley2_y_move = -2;
}
if (_parent.smiley2._y < -78) {
smiley2_y_move = 2;
}
if (_parent.smiley3._x > 96) {
smiley3_x_move = -2;
}
if (_parent.smiley3._x < -94) {
smiley3_x_move = 2;
}
if (_parent.smiley3._y > 230) {
smiley3_y_move = -2;
}
if (_parent.smiley3._y < -78) {
smiley3_y_move = 2;
}
if (_parent.smiley4._x > 96) {
smiley4_x_move = -2;
}
if (_parent.smiley4._x < -94) {
smiley4_x_move = 2;
}
if (_parent.smiley4._y > 230) {
smiley4_y_move = -2;
}
if (_parent.smiley4._y < -78) {
smiley4_y_move = 2;
}
if (not_end == true) {
_parent.smiley1._x = _parent.smiley1._x + smiley1_x_move;
_parent.smiley1._y = _parent.smiley1._y + smiley1_y_move;
_parent.smiley2._x = _parent.smiley2._x + smiley2_x_move;
_parent.smiley2._y = _parent.smiley2._y + smiley2_y_move;
_parent.smiley3._x = _parent.smiley3._x + smiley3_x_move;
_parent.smiley3._y = _parent.smiley3._y + smiley3_y_move;
_parent.smiley4._x = _parent.smiley4._x + smiley4_x_move;
_parent.smiley4._y = _parent.smiley4._y + smiley4_y_move;
} else if (fade_over == false) {
_parent.smiley1._alpha = _parent.smiley1._alpha - 2;
_parent.smiley2._alpha = _parent.smiley2._alpha - 2;
_parent.smiley3._alpha = _parent.smiley3._alpha - 2;
_parent.smiley4._alpha = _parent.smiley4._alpha - 2;
if (_parent.smiley1._alpha <= 0) {
fade_over = true;
}
}
ship_damaged = ship_damaged - 1;
var i = 1;
while (i <= 4) {
var smiley_name = ("smiley" + i);
if ((_parent[smiley_name].hitTest(_parent.good_ship.hit_box) && (ship_damaged < 0)) && (not_end == true)) {
_parent.good_ship.gotoAndStop(2);
good_ship_hit = true;
ship_damaged = 40;
_root.life_number = _root.life_number - 1;
}
i++;
}
if ((_parent.sun_mc.sun_circle.hitTest(_parent.good_ship) && (ship_damaged < 0)) && (not_end == true)) {
_parent.good_ship.gotoAndStop(2);
good_ship_hit = true;
ship_damaged = 40;
_root.life_number = _root.life_number - 1;
}
_root.life_bar.gotoAndStop(_root.life_number + 1);
if (ship_damaged == 0) {
_parent.good_ship.gotoAndStop(1);
good_ship_hit = false;
}
if (_root.life_number <= 0) {
not_end = false;
_parent.good_ship.stop_movement = true;
_root.boss3_first.stop();
_root.boss3_second.stop();
var a = 1;
while (a <= 10) {
var bullet_name = ("bullet" + a);
removeMovieClip(_parent[bullet_name]);
a++;
}
_parent.gotoAndStop(128);
}
sun_hit_count = sun_hit_count - 1;
var a = 1;
while (a <= 10) {
var bullet_name = ("bullet" + a);
_parent[bullet_name]._y = _parent[bullet_name]._y - 6;
if (_parent[bullet_name]._y < -100) {
removeMovieClip(_parent[bullet_name]);
}
if ((_parent[bullet_name].hitTest(_parent.sun_mc.hit_box) && (sun_hit_count < 0)) && (not_end == true)) {
removeMovieClip(_parent[bullet_name]);
_parent.sun_mc.gotoAndStop(2);
sun_hit_count = 10;
sun_death = sun_death - 1;
_root.boss3_second.setVolume(100);
_parent.sound_mc.boss3_second_is_on = true;
}
a++;
}
if ((sun_hit_count == -1) && (not_end == true)) {
_parent.sun_mc.gotoAndStop(1);
_root.boss3_second.setVolume(0);
_parent.sound_mc.boss3_second_is_on = false;
}
if (sun_death == 0) {
good_ship_hit = true;
not_end = false;
_root.blowing_up.start(0, 0);
sun_death = -1;
_parent.sun_mc.gotoAndStop(3);
}
if (((_root.blowing_up.position >= 4985) && (sun_death == -1)) && (sound_trigger == true)) {
_parent.final_blow_mc.gotoAndPlay(2);
sun_death = sun_death - 1;
} else if (((_root.blowing_up.position >= 4985) && (_root.blowing_up.position < 10000)) && (sun_death == -1)) {
sound_trigger = true;
} else if ((sun_death <= -2) && (sun_death > -35)) {
sun_death = sun_death - 1;
} else if (sun_death == -35) {
sun_death = -100;
_parent.sun_mc.gotoAndStop(4);
}
_parent.sun_mc.sun_spikes.spikes.color_spike._alpha = 100 - (sun_death * sun_death_2);
_parent.sun_mc.sun_spikes.spikes.color_spike2._alpha = 100 - (sun_death * sun_death_2);
_parent.sun_mc.sun_spikes.spikes.color_spike3._alpha = 100 - (sun_death * sun_death_2);
_parent.sun_mc.sun_spikes.spikes.color_spike4._alpha = 100 - (sun_death * sun_death_2);
_parent.sun_mc.sun_spikes.spikes.color_spike5._alpha = 100 - (sun_death * sun_death_2);
_parent.sun_mc.sun_spikes.spikes.color_spike6._alpha = 100 - (sun_death * sun_death_2);
_parent.sun_mc.sun_spikes.spikes.color_spike7._alpha = 100 - (sun_death * sun_death_2);
_parent.sun_mc.sun_spikes.spikes.color_spike8._alpha = 100 - (sun_death * sun_death_2);
_parent.sun_mc.sun_circle_2._alpha = 100 - (sun_death * sun_death_2);
}
Symbol 486 MovieClip Frame 127
stop();
Symbol 486 MovieClip Frame 128
stop();
Instance of Symbol 476 MovieClip "sun_mc" in Symbol 486 MovieClip Frame 128
onClipEvent (load) {
var going_right = false;
var count = 0;
var turn = 0;
var on_off = 0;
}
onClipEvent (enterFrame) {
count = count + 1;
if (going_right == false) {
this._x = this._x - 3;
if (this._x < -54) {
going_right = true;
}
} else {
this._x = this._x + 3;
if (this._x > 54) {
going_right = false;
}
}
if (((count > 130) && (on_off < 4)) && (_parent.hit_mc.not_end == true)) {
if (turn == 0) {
_parent.attachMovie("smiley_linkage", "smiley1", 200);
_parent.smiley1._x = this._x;
_parent.smiley1._y = this._y;
turn = 1;
on_off = on_off + 1;
} else if (turn == 1) {
_parent.attachMovie("smiley_linkage", "smiley2", 201);
_parent.smiley2._x = this._x;
_parent.smiley2._y = this._y;
turn = 2;
on_off = on_off + 1;
} else if (turn == 2) {
_parent.attachMovie("smiley_linkage", "smiley3", 202);
_parent.smiley3._x = this._x;
_parent.smiley3._y = this._y;
turn = 3;
on_off = on_off + 1;
} else if (turn == 3) {
_parent.attachMovie("smiley_linkage", "smiley4", 203);
_parent.smiley4._x = this._x;
_parent.smiley4._y = this._y;
turn = 4;
on_off = on_off + 1;
}
count = 80;
}
}
Symbol 487 MovieClip Frame 1
_quality = "LOW";
_root.level_light1.gotoAndStop(1);
_root.level_light2.gotoAndStop(2);
_root.level_light3.gotoAndStop(1);
Instance of Symbol 345 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
_root.digital_noise.setVolume(60);
_root.digital_noise.start(0, 0);
}
Instance of Symbol 449 MovieClip "good_ship" in Symbol 487 MovieClip Frame 85
onClipEvent (load) {
var bullet_count = -1;
var i = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(39) && (this._x < 246)) {
this._x = this._x + 4;
} else if (Key.isDown(68) && (this._x < 246)) {
this._x = this._x + 4;
}
if (Key.isDown(37) && (this._x > 54)) {
this._x = this._x - 4;
} else if (Key.isDown(65) && (this._x > 54)) {
this._x = this._x - 4;
}
if (Key.isDown(38) && (this._y > -316)) {
this._y = this._y - 4;
} else if (Key.isDown(87) && (this._y > -316)) {
this._y = this._y - 4;
}
if (Key.isDown(40) && (this._y < -4)) {
this._y = this._y + 4;
} else if (Key.isDown(83) && (this._y < -4)) {
this._y = this._y + 4;
}
if ((Key.isDown(32) && (bullet_count < 0)) && (_parent.first_mc.good_ship_blinking == false)) {
if (_parent.music_mc.fire_mode == true) {
_parent.attachMovie("fire_bullet_linkage", "bullet" + i, i + 950);
var bullet_name = ("bullet" + i);
_parent[bullet_name]._x = this._x;
_parent[bullet_name]._y = this._y - 30;
_parent[bullet_name]._xscale = 50;
_parent[bullet_name]._yscale = 50;
} else {
_parent.attachMovie("bullet_linkage", "bullet" + i, i + 950);
var bullet_name = ("bullet" + i);
_parent[bullet_name]._x = this._x;
_parent[bullet_name]._y = this._y - 30;
_parent[bullet_name]._xscale = 25;
_parent[bullet_name]._yscale = 25;
}
if (i == 10) {
i = 0;
}
i = i + 1;
bullet_count = 6;
}
bullet_count = bullet_count - 1;
var a = 1;
while (a <= 10) {
var bullet_name = ("bullet" + a);
_parent[bullet_name]._y = _parent[bullet_name]._y - 6;
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[bullet_name]);
}
if (_parent[bullet_name]._y < -350) {
removeMovieClip(_parent[bullet_name]);
}
a++;
}
}
Symbol 487 MovieClip Frame 151
stop();
Instance of Symbol 345 MovieClip in Symbol 487 MovieClip Frame 151
onClipEvent (load) {
var random_number = 0;
var i = 1;
var frequency_number = 95;
var enemy_count = 0;
var enemy_ii_speed = 5;
var loop_count = 3;
var shot_count = 30;
var shot_color = 0;
var shot_selection = 0;
var shot_reset = false;
var shot_number = 1;
}
onClipEvent (enterFrame) {
rand_number = Math.random() * 100;
if ((rand_number > frequency_number) && (enemy_count <= 0)) {
rand_number = Math.random() * 5;
if (rand_number < 1) {
_parent.attachMovie("blue_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 1;
} else if (rand_number < 2) {
_parent.attachMovie("red_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 2;
} else if (rand_number < 3) {
_parent.attachMovie("orange_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 3;
} else if (rand_number < 4) {
_parent.attachMovie("green_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 4;
} else {
_parent.attachMovie("purple_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 5;
}
_parent[enemy_name]._x = ((Math.random() * 160) + 20) + 50;
_parent[enemy_name]._y = -350;
_parent[enemy_name]._xscale = 35;
_parent[enemy_name]._yscale = 35;
enemy_count = 51;
i = i + 1;
}
enemy_count = enemy_count - 1;
if (i >= (loop_count + 1)) {
i = 1;
}
if (shot_count <= 0) {
shot_color = Math.random() * 5;
shot_selection = Math.round(Math.random() * loop_count);
shot_reset = true;
}
var a = 1;
while (a <= loop_count) {
var enemy_name = ("enemy_ii" + a);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[enemy_name]);
}
if ((_parent[enemy_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) && (_parent[enemy_name].is_hit2 != 1)) {
_parent.good_ship.gotoAndStop(2);
_parent.length_mc.score = _parent.length_mc.score - 500;
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
}
_parent[enemy_name]._y = _parent[enemy_name]._y + enemy_ii_speed;
var b = 1;
while (b <= 10) {
var bullet_name = ("bullet" + b);
var hit_test = _parent[bullet_name].hitTest(_parent[enemy_name]);
if (hit_test && (_parent[enemy_name].is_hit != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit = 1;
if (_parent.music_mc.fire_mode == true) {
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_ii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit2 = 1;
_parent.length_mc.score = _parent.length_mc.score + 400;
}
} else if (hit_test && (_parent[enemy_name].is_hit2 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_ii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit2 = 1;
_parent.length_mc.score = _parent.length_mc.score + 200;
}
b++;
}
if ((((shot_count <= 0) && (shot_color < 1)) && (shot_selection == a)) && (_parent[enemy_name].no_shot != 1)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot2" + shot_number, shot_number + 220);
var shot_name = ("enemy_shot2" + shot_number);
_parent[shot_name]._x = _parent[enemy_name]._x;
_parent[shot_name]._y = _parent[enemy_name]._y + 6;
shot_color = 50;
shot_selection = 123335 /* 0x01E1C7 */;
shot_number = shot_number + 1;
}
if (_parent[enemy_name]._y > 10) {
removeMovieClip(_parent[enemy_name]);
}
a++;
}
var c = 1;
while (c <= 10) {
var shot_name = ("enemy_shot2" + c);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[shot_name]);
}
if (_parent[shot_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) {
removeMovieClip(_parent[shot_name]);
_parent.good_ship.gotoAndStop(2);
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
_parent.length_mc.score = _parent.length_mc.score - 500;
}
_parent[shot_name]._y = _parent[shot_name]._y + 10;
c++;
}
if (shot_reset == true) {
shot_count = 11;
shot_reset = false;
}
if (shot_number == 11) {
shot_number = 1;
}
shot_count = shot_count - 1;
}
Instance of Symbol 345 MovieClip in Symbol 487 MovieClip Frame 151
onClipEvent (load) {
var random_number = 0;
var i = 1;
var frequency_number = 96.5;
var enemy_count = 0;
var enemy_iii_speed = 4;
var loop_count = 3;
var shot_count = 30;
var shot_color = 0;
var shot_selection = 0;
var shot_reset = false;
var shot_number = 1;
}
onClipEvent (enterFrame) {
rand_number = Math.random() * 100;
if ((rand_number > frequency_number) && (enemy_count <= 0)) {
rand_number = Math.random() * 5;
if (rand_number < 1) {
_parent.attachMovie("blue_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 1;
} else if (rand_number < 2) {
_parent.attachMovie("red_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 2;
} else if (rand_number < 3) {
_parent.attachMovie("orange_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 3;
} else if (rand_number < 4) {
_parent.attachMovie("green_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 4;
} else {
_parent.attachMovie("purple_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 5;
}
_parent[enemy_name]._x = ((Math.random() * 140) + 30) + 50;
_parent[enemy_name]._y = -350;
_parent[enemy_name]._xscale = 45;
_parent[enemy_name]._yscale = 45;
enemy_count = 61;
i = i + 1;
}
enemy_count = enemy_count - 1;
if (i >= (loop_count + 1)) {
i = 1;
}
if (shot_count <= 0) {
shot_color = Math.random() * 5;
shot_selection = Math.round(Math.random() * loop_count);
shot_reset = true;
}
var a = 1;
while (a <= loop_count) {
var enemy_name = ("enemy_iii" + a);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[enemy_name]);
}
if ((_parent[enemy_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) && (_parent[enemy_name].is_hit3 != 1)) {
_parent.good_ship.gotoAndStop(2);
_parent.length_mc.score = _parent.length_mc.score - 500;
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
}
_parent[enemy_name]._y = _parent[enemy_name]._y + enemy_iii_speed;
var b = 1;
while (b <= 10) {
var bullet_name = ("bullet" + b);
var hit_test = _parent[bullet_name].hitTest(_parent[enemy_name]);
if (hit_test && (_parent[enemy_name].is_hit != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit = 1;
} else if (hit_test && (_parent[enemy_name].is_hit2 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit2 = 1;
if (_parent.music_mc.fire_mode == true) {
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_iii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit3 = 1;
_parent.length_mc.score = _parent.length_mc.score + 600;
}
} else if (hit_test && (_parent[enemy_name].is_hit3 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_iii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit3 = 1;
_parent.length_mc.score = _parent.length_mc.score + 300;
}
b++;
}
if ((((shot_count <= 0) && (shot_color < 1)) && (shot_selection == a)) && (_parent[enemy_name].no_shot != 1)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot3" + shot_number, shot_number + 240);
var shot_name = ("enemy_shot3" + shot_number);
_parent[shot_name]._x = _parent[enemy_name]._x;
_parent[shot_name]._y = _parent[enemy_name]._y + 6;
shot_color = 50;
shot_selection = 123335 /* 0x01E1C7 */;
shot_number = shot_number + 1;
}
if (_parent[enemy_name]._y > 10) {
removeMovieClip(_parent[enemy_name]);
}
a++;
}
var c = 1;
while (c <= 10) {
var shot_name = ("enemy_shot3" + c);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[shot_name]);
}
if (_parent[shot_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) {
removeMovieClip(_parent[shot_name]);
_parent.good_ship.gotoAndStop(2);
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
_parent.length_mc.score = _parent.length_mc.score - 500;
}
_parent[shot_name]._y = _parent[shot_name]._y + 10;
c++;
}
if (shot_reset == true) {
shot_count = 11;
shot_reset = false;
}
if (shot_number == 11) {
shot_number = 1;
}
shot_count = shot_count - 1;
}
Instance of Symbol 345 MovieClip in Symbol 487 MovieClip Frame 151
onClipEvent (load) {
var random_number = 0;
var i = 1;
var frequency_number = 98;
var enemy_count = 0;
var enemy_iiii_speed = 3;
var loop_count = 3;
var shot_count = 30;
var shot_color = 0;
var shot_selection = 0;
var shot_reset = false;
var shot_number = 1;
}
onClipEvent (enterFrame) {
rand_number = Math.random() * 100;
if ((rand_number > frequency_number) && (enemy_count <= 0)) {
rand_number = Math.random() * 5;
if (rand_number < 1) {
_parent.attachMovie("blue_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 1;
} else if (rand_number < 2) {
_parent.attachMovie("red_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 2;
} else if (rand_number < 3) {
_parent.attachMovie("orange_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 3;
} else if (rand_number < 4) {
_parent.attachMovie("green_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 4;
} else {
_parent.attachMovie("purple_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 5;
}
_parent[enemy_name]._x = ((Math.random() * 120) + 40) + 50;
_parent[enemy_name]._y = -350;
_parent[enemy_name]._xscale = 55;
_parent[enemy_name]._yscale = 55;
enemy_count = 71;
i = i + 1;
}
enemy_count = enemy_count - 1;
if (i >= (loop_count + 1)) {
i = 1;
}
if (shot_count <= 0) {
shot_color = Math.random() * 5;
shot_selection = Math.round(Math.random() * loop_count);
shot_reset = true;
}
var a = 1;
while (a <= loop_count) {
var enemy_name = ("enemy_iiii" + a);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[enemy_name]);
}
if ((_parent[enemy_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) && (_parent[enemy_name].is_hit4 != 1)) {
_parent.good_ship.gotoAndStop(2);
_parent.length_mc.score = _parent.length_mc.score - 500;
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
}
_parent[enemy_name]._y = _parent[enemy_name]._y + enemy_iiii_speed;
var b = 1;
while (b <= 10) {
var bullet_name = ("bullet" + b);
var hit_test = _parent[bullet_name].hitTest(_parent[enemy_name]);
if (hit_test && (_parent[enemy_name].is_hit != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit = 1;
} else if (hit_test && (_parent[enemy_name].is_hit2 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit2 = 1;
} else if (hit_test && (_parent[enemy_name].is_hit3 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit3 = 1;
if (_parent.music_mc.fire_mode == true) {
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_iiii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit4 = 1;
_parent.length_mc.score = _parent.length_mc.score + 800;
}
} else if (hit_test && (_parent[enemy_name].is_hit4 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_iiii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit4 = 1;
_parent.length_mc.score = _parent.length_mc.score + 400;
}
b++;
}
if ((((shot_count <= 0) && (shot_color < 1)) && (shot_selection == a)) && (_parent[enemy_name].no_shot != 1)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot4" + shot_number, shot_number + 260);
var shot_name = ("enemy_shot4" + shot_number);
_parent[shot_name]._x = _parent[enemy_name]._x;
_parent[shot_name]._y = _parent[enemy_name]._y + 6;
shot_color = 50;
shot_selection = 123335 /* 0x01E1C7 */;
shot_number = shot_number + 1;
}
if (_parent[enemy_name]._y > 10) {
removeMovieClip(_parent[enemy_name]);
}
a++;
}
var c = 1;
while (c <= 10) {
var shot_name = ("enemy_shot4" + c);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[shot_name]);
}
if (_parent[shot_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) {
removeMovieClip(_parent[shot_name]);
_parent.good_ship.gotoAndStop(2);
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
_parent.length_mc.score = _parent.length_mc.score - 500;
}
_parent[shot_name]._y = _parent[shot_name]._y + 10;
c++;
}
if (shot_reset == true) {
shot_count = 11;
shot_reset = false;
}
if (shot_number == 11) {
shot_number = 1;
}
shot_count = shot_count - 1;
}
Instance of Symbol 345 MovieClip "first_mc" in Symbol 487 MovieClip Frame 151
onClipEvent (load) {
var random_number = 0;
var i = 1;
var frequency_number = 90;
var enemy_count = 0;
var enemy_i_speed = 6;
var loop_count = 3;
var shot_count = 30;
var shot_color = 0;
var shot_selection = 0;
var shot_reset = false;
var shot_number = 1;
var good_ship_hit = -1;
var good_ship_blinking = false;
}
onClipEvent (enterFrame) {
rand_number = Math.random() * 100;
if ((rand_number > frequency_number) && (enemy_count <= 0)) {
rand_number = Math.random() * 5;
if (rand_number < 1) {
_parent.attachMovie("blue_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 1;
} else if (rand_number < 2) {
_parent.attachMovie("red_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 2;
} else if (rand_number < 3) {
_parent.attachMovie("orange_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 3;
} else if (rand_number < 4) {
_parent.attachMovie("green_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 4;
} else {
_parent.attachMovie("purple_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 5;
}
_parent[enemy_name]._x = ((Math.random() * 180) + 10) + 50;
_parent[enemy_name]._y = -350;
_parent[enemy_name]._xscale = 25;
_parent[enemy_name]._yscale = 25;
enemy_count = 41;
i = i + 1;
}
enemy_count = enemy_count - 1;
if (i >= (loop_count + 1)) {
i = 1;
}
if (shot_count <= 0) {
shot_color = Math.random() * 5;
shot_selection = Math.round(Math.random() * loop_count);
shot_reset = true;
}
var a = 1;
while (a <= loop_count) {
var enemy_name = ("enemy_i" + a);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[enemy_name]);
}
if ((_parent[enemy_name].hitTest(_parent.good_ship) && (good_ship_hit == -1)) && (_parent[enemy_name].is_hit != 1)) {
_parent.good_ship.gotoAndStop(2);
_parent.length_mc.score = _parent.length_mc.score - 500;
good_ship_blinking = true;
good_ship_hit = 40;
}
_parent[enemy_name]._y = _parent[enemy_name]._y + enemy_i_speed;
var b = 1;
while (b <= 10) {
var bullet_name = ("bullet" + b);
if (_parent[bullet_name].hitTest(_parent[enemy_name]) && (_parent[enemy_name].is_hit != 1)) {
if (_parent.music_mc.fire_mode == false) {
removeMovieClip(_parent[bullet_name]);
_parent.length_mc.score = _parent.length_mc.score + -100;
}
_parent[enemy_name].is_hit = 1;
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_i_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent.length_mc.score = _parent.length_mc.score + 200;
}
b++;
}
if ((((shot_count <= 0) && (shot_color < 1)) && (shot_selection == a)) && (_parent[enemy_name].no_shot != 1)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot" + shot_number, shot_number + 200);
var shot_name = ("enemy_shot" + shot_number);
_parent[shot_name]._x = _parent[enemy_name]._x;
_parent[shot_name]._y = _parent[enemy_name]._y + 6;
shot_color = 50;
shot_selection = 123335 /* 0x01E1C7 */;
shot_number = shot_number + 1;
}
if (_parent[enemy_name]._y > 10) {
removeMovieClip(_parent[enemy_name]);
}
a++;
}
var c = 1;
while (c <= 10) {
var shot_name = ("enemy_shot" + c);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[shot_name]);
}
if (_parent[shot_name].hitTest(_parent.good_ship) && (good_ship_hit == -1)) {
removeMovieClip(_parent[shot_name]);
_parent.good_ship.gotoAndStop(2);
good_ship_blinking = true;
good_ship_hit = 40;
_parent.length_mc.score = _parent.length_mc.score - 500;
}
_parent[shot_name]._y = _parent[shot_name]._y + 10;
c++;
}
if (good_ship_hit >= 1) {
good_ship_hit = good_ship_hit - 1;
}
if ((good_ship_hit == 0) && (_parent.music_mc.fire_mode == false)) {
_parent.good_ship.gotoAndStop(1);
good_ship_blinking = false;
_parent.music_mc.punished = false;
good_ship_hit = -1;
} else if ((good_ship_hit == 0) && (_parent.music_mc.fire_mode == true)) {
_parent.good_ship.gotoAndStop(3);
good_ship_blinking = false;
_parent.music_mc.punished = false;
good_ship_hit = -1;
}
if (shot_reset == true) {
shot_count = 11;
shot_reset = false;
}
if (shot_number == 11) {
shot_number = 1;
}
shot_count = shot_count - 1;
}
Instance of Symbol 345 MovieClip "speakers_mc" in Symbol 487 MovieClip Frame 151
onClipEvent (load) {
var song3_bass_is_on = false;
var song3_bass_amp = 0;
var song3_bells_is_on = false;
var song3_bells_amp = 0;
var song3_chiptune_is_on = false;
var song3_chiptune_amp = 0;
var song3_chords_is_on = false;
var song3_chords_amp = 0;
var song3_drums_is_on = false;
var song3_drums_amp = 0;
var song3_pos = 0;
var max_amp = 0;
var speaker_size = 0;
var effect_size = 0.1;
var sample_length = 7385;
var amp_array_length = 222;
}
onClipEvent (enterFrame) {
song3_pos = Math.round((_root.song3_chords.position / sample_length) * amp_array_length);
if (song3_bass_is_on == true) {
song3_bass_amp = _root.song3_bass.amplitude[song3_pos];
if (song3_bass_amp >= 20) {
_root.light5.gotoAndPlay(2);
_root.light3.gotoAndPlay(2);
}
} else {
song3_bass_amp = 0;
}
if (song3_bells_is_on == true) {
song3_bells_amp = _root.song3_bells.amplitude[song3_pos];
if (song3_bells_amp >= 10) {
_root.light1.gotoAndPlay(2);
_root.light8.gotoAndPlay(2);
}
} else {
song3_bells_amp = 0;
}
if (song3_chiptune_is_on == true) {
song3_chiptune_amp = _root.song3_chiptune.amplitude[song3_pos];
if (song3_chiptune_amp >= 20) {
_root.light2.gotoAndPlay(2);
_root.light10.gotoAndPlay(2);
}
} else {
song3_chiptune_amp = 0;
}
if (song3_chords_is_on == true) {
song3_chords_amp = _root.song3_chords.amplitude[song3_pos];
if (song3_chords_amp >= 10) {
_root.light6.gotoAndPlay(2);
_root.light4.gotoAndPlay(2);
}
} else {
song3_chords_amp = 0;
}
if (song3_drums_is_on == true) {
song3_drums_amp = _root.song3_drums.amplitude[song3_pos];
if (song3_drums_amp >= 35) {
_root.light9.gotoAndPlay(2);
_root.light7.gotoAndPlay(2);
}
} else {
song3_drums_amp = 0;
}
max_amp = Math.max(song3_bass_amp, song3_bells_amp);
max_amp = Math.max(max_amp, song3_chiptune_amp);
max_amp = Math.max(max_amp, song3_chords_amp);
speaker_size = 100 + (max_amp * effect_size);
_root.left_speaker._xscale = speaker_size;
_root.left_speaker._yscale = speaker_size;
_root.right_speaker._xscale = speaker_size;
_root.right_speaker._yscale = speaker_size;
if (_parent.music_mc.fire_mode == true) {
_root.fire_light.gotoAndStop(2);
} else {
_root.fire_light.gotoAndStop(1);
}
}
Instance of Symbol 345 MovieClip "music_mc" in Symbol 487 MovieClip Frame 151
onClipEvent (load) {
_root.song3_chords.start(0, 99);
_root.song3_chords.setVolume(0);
_root.song3_bass.start(0, 99);
_root.song3_bass.setVolume(0);
_root.song3_bells.start(0, 99);
_root.song3_bells.setVolume(0);
_root.song3_chiptune.start(0, 99);
_root.song3_chiptune.setVolume(0);
_root.song3_drums.start(0, 99);
_root.song3_drums.setVolume(0);
var is_ship_hit = false;
var enemy_i_hit = 0;
var enemy_ii_hit = 0;
var enemy_iii_hit = 0;
var enemy_iiii_hit = 0;
var blue_counter = 0;
var red_counter = 0;
var orange_counter = 0;
var green_counter = 0;
var purple_counter = 0;
var sample_length = 7385;
var song_pos = 0;
var step_off = 0;
var punished = false;
var fire_mode = false;
var fire_change = 0;
}
onClipEvent (enterFrame) {
if (enemy_i_hit != 0) {
if (enemy_i_hit == 1) {
blue_counter = blue_counter + 1;
enemy_i_hit = 0;
}
if (enemy_i_hit == 2) {
red_counter = red_counter + 1;
enemy_i_hit = 0;
}
if (enemy_i_hit == 3) {
orange_counter = orange_counter + 1;
enemy_i_hit = 0;
}
if (enemy_i_hit == 4) {
green_counter = green_counter + 1;
enemy_i_hit = 0;
}
if (enemy_i_hit == 5) {
purple_counter = purple_counter + 1;
enemy_i_hit = 0;
}
}
if (enemy_ii_hit != 0) {
if (enemy_ii_hit == 1) {
blue_counter = blue_counter + 2;
enemy_ii_hit = 0;
}
if (enemy_ii_hit == 2) {
red_counter = red_counter + 2;
enemy_ii_hit = 0;
}
if (enemy_ii_hit == 3) {
orange_counter = orange_counter + 2;
enemy_ii_hit = 0;
}
if (enemy_ii_hit == 4) {
green_counter = green_counter + 2;
enemy_ii_hit = 0;
}
if (enemy_ii_hit == 5) {
purple_counter = purple_counter + 2;
enemy_ii_hit = 0;
}
}
if (enemy_iii_hit != 0) {
if (enemy_iii_hit == 1) {
blue_counter = blue_counter + 3;
enemy_iii_hit = 0;
}
if (enemy_iii_hit == 2) {
red_counter = red_counter + 3;
enemy_iii_hit = 0;
}
if (enemy_iii_hit == 3) {
orange_counter = orange_counter + 3;
enemy_iii_hit = 0;
}
if (enemy_iii_hit == 4) {
green_counter = green_counter + 3;
enemy_iii_hit = 0;
}
if (enemy_iii_hit == 5) {
purple_counter = purple_counter + 3;
enemy_iii_hit = 0;
}
}
if (enemy_iiii_hit != 0) {
if (enemy_iiii_hit == 1) {
blue_counter = blue_counter + 4;
enemy_iiii_hit = 0;
}
if (enemy_iiii_hit == 2) {
red_counter = red_counter + 4;
enemy_iiii_hit = 0;
}
if (enemy_iiii_hit == 3) {
orange_counter = orange_counter + 4;
enemy_iiii_hit = 0;
}
if (enemy_iiii_hit == 4) {
green_counter = green_counter + 4;
enemy_iiii_hit = 0;
}
if (enemy_iiii_hit == 5) {
purple_counter = purple_counter + 4;
enemy_iiii_hit = 0;
}
}
if (blue_counter > 0) {
_root.song3_drums.setVolume(100);
_parent.speakers_mc.song3_chords_is_on = true;
} else {
_root.song3_drums.setVolume(0);
_parent.speakers_mc.song3_chords_is_on = false;
}
if (red_counter > 0) {
_root.song3_bass.setVolume(130);
_parent.speakers_mc.song3_bass_is_on = true;
} else {
_root.song3_bass.setVolume(0);
_parent.speakers_mc.song3_bass_is_on = false;
}
if (orange_counter > 0) {
_root.song3_bells.setVolume(100);
_parent.speakers_mc.song3_bells_is_on = true;
} else {
_root.song3_bells.setVolume(0);
_parent.speakers_mc.song3_bells_is_on = false;
}
if (green_counter > 0) {
_root.song3_chiptune.setVolume(100);
_parent.speakers_mc.song3_chiptune_is_on = true;
} else {
_root.song3_chiptune.setVolume(0);
_parent.speakers_mc.song3_chiptune_is_on = false;
}
if (purple_counter > 0) {
_root.song3_chords.setVolume(100);
_parent.speakers_mc.song3_drums_is_on = true;
} else {
_root.song3_chords.setVolume(0);
_parent.speakers_mc.song3_drums_is_on = false;
}
if (blue_counter > 8) {
blue_counter = 8;
}
if (red_counter > 8) {
red_counter = 8;
}
if (orange_counter > 8) {
orange_counter = 8;
}
if (green_counter > 8) {
green_counter = 8;
}
if (purple_counter > 8) {
purple_counter = 8;
}
_root.blue_bar.gotoAndStop(blue_counter + 1);
_root.red_bar.gotoAndStop(red_counter + 1);
_root.orange_bar.gotoAndStop(orange_counter + 1);
_root.green_bar.gotoAndStop(green_counter + 1);
_root.purple_bar.gotoAndStop(purple_counter + 1);
song_pos = _root.song3_chords.position;
if ((song_pos < (sample_length / 4)) && (step_off != 1)) {
step_off = 1;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length / 2)) && (song_pos >= (sample_length / 4))) && (step_off != 2)) {
step_off = 2;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.75)) && (song_pos >= (sample_length / 2))) && (step_off != 3)) {
step_off = 3;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if ((song_pos >= (sample_length * 0.75)) && (step_off != 4)) {
step_off = 4;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
}
if ((_parent.first_mc.good_ship_blinking == true) && (punished == false)) {
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
punished = true;
}
if (blue_counter < 0) {
blue_counter = 0;
}
if (red_counter < 0) {
red_counter = 0;
}
if (orange_counter < 0) {
orange_counter = 0;
}
if (green_counter < 0) {
green_counter = 0;
}
if (purple_counter < 0) {
purple_counter = 0;
}
if (((((blue_counter > 0) && (red_counter > 0)) && (orange_counter > 0)) && (green_counter > 0)) && (purple_counter > 0)) {
fire_mode = true;
} else {
fire_mode = false;
}
if ((fire_mode == true) && (fire_change == 0)) {
_parent.good_ship.gotoAndStop(3);
fire_change = 1;
} else if ((fire_mode == false) && (fire_change == 1)) {
_parent.good_ship.gotoAndStop(1);
fire_change = 0;
}
}
Instance of Symbol 345 MovieClip "length_mc" in Symbol 487 MovieClip Frame 151
onClipEvent (load) {
var frame_trig = 0;
var frame_limit = 1000;
var current_frame = 0;
var score = 0;
var maxScore = 15000;
var removal_done = 0;
}
onClipEvent (enterFrame) {
current_frame = current_frame + 1;
_root.progress_bar.gotoAndStop(Math.round((current_frame / frame_limit) * 200));
if ((current_frame > frame_limit) && (frame_trig == 0)) {
_parent.attachMovie("mask_2_linkage", "mask", 3000);
_parent.mask._x = 150;
_parent.mask._y = -160;
frame_trig = 1;
}
if ((frame_trig > 0) && (frame_trig < 100)) {
_parent.mask._alpha = frame_trig + 1;
frame_trig = frame_trig + 1;
}
if (frame_trig >= 100) {
if (removal_done == 2) {
_parent.gotoAndStop(152);
removeMovieClip(_parent.mask);
frame_trig = -120;
}
removal_done = removal_done + 1;
}
if (score < 0) {
score = 0;
}
}
Instance of Symbol 345 MovieClip in Symbol 487 MovieClip Frame 153
onClipEvent (load) {
var counter = 1;
}
onClipEvent (enterFrame) {
if (counter <= 50) {
if (_parent.speakers_mc.song3_bass_is_on == true) {
_root.song3_bass.setVolume(_root.song3_bass.getVolume() - 2);
}
if (_parent.speakers_mc.song3_bells_is_on == true) {
_root.song3_bells.setVolume(_root.song3_bells.getVolume() - 2);
}
if (_parent.speakers_mc.song3_chiptune_is_on == true) {
_root.song3_chiptune.setVolume(_root.song3_chiptune.getVolume() - 2);
}
if (_parent.speakers_mc.song3_chords_is_on == true) {
_root.song3_chords.setVolume(_root.song3_chords.getVolume() - 2);
}
if (_parent.speakers_mc.song3_drums_is_on == true) {
_root.song3_drums.setVolume(_root.song3_drums.getVolume() - 2);
}
counter = counter + 1;
} else if (counter < 100) {
_root.song3_bass.stop();
_root.song3_bells.stop();
_root.song3_chiptune.stop();
_root.song3_chords.stop();
_root.song3_drums.stop();
_root.blue_bar.gotoAndStop(1);
_root.red_bar.gotoAndStop(1);
_root.orange_bar.gotoAndStop(1);
_root.green_bar.gotoAndStop(1);
_root.purple_bar.gotoAndStop(1);
counter = 500;
}
}
Symbol 487 MovieClip Frame 205
_root.gotoAndPlay(6 + _root.preloader_length);
Symbol 512 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 2
stop();
Symbol 512 MovieClip Frame 3
stop();
Instance of Symbol 345 MovieClip in Symbol 512 MovieClip Frame 3
onClipEvent (load) {
var counter = 1;
var blow_up_counter = 0;
var i = 1;
}
onClipEvent (enterFrame) {
if (counter <= 75) {
_root.boss2_first.setVolume(_root.boss2_first.getVolume() - 1);
_root.boss2_second.setVolume(_root.boss2_second.getVolume() - 1);
counter = counter + 1;
} else if (counter < 100) {
_root.boss2_first.stop();
_root.boss2_second.stop();
counter = 500;
}
if (blow_up_counter <= 0) {
blow_up_counter = 3;
if (i >= 8) {
i = 1;
}
_parent.attachMovie("blow_up_linkage", "blowup" + i, 3000 + i);
var blow_up_name = ("blowup" + i);
_parent[blow_up_name]._x = (Math.random() * 200) - 100;
_parent[blow_up_name]._y = (Math.random() * 200) - 100;
var scale = ((Math.random() * 90) + 110);
_parent[blow_up_name]._xscale = scale;
_parent[blow_up_name]._yscale = scale;
i = i + 1;
}
blow_up_counter = blow_up_counter - 1;
}
Symbol 512 MovieClip Frame 4
stop();
Symbol 513 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 60
_root.progress_bar.gotoAndStop(1);
_root.life_bar.gotoAndStop(1);
_root.gotoAndPlay(7 + _root.preloader_length);
Instance of Symbol 345 MovieClip "sound_mc" in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
_root.boss2_first.start(0, 999);
_root.boss2_first.setVolume(100);
_root.boss2_second.start(0, 999);
_root.boss2_second.setVolume(0);
var boss2_first_is_on = true;
var boss2_first_amp = 0;
var boss2_second_is_on = false;
var boss2_second_amp = 0;
var song_pos = 0;
var max_amp = 0;
var speaker_size = 0;
var effect_size = 0.1;
var sample_length = 11294;
var amp_array_length = 339;
var temp_pos = -3;
var mask_done = false;
var level_end_trigger = false;
var last_step = false;
}
onClipEvent (enterFrame) {
song_pos = Math.round((_root.boss2_first.position / sample_length) * amp_array_length);
if (boss2_first_is_on == true) {
boss2_first_amp = _root.boss2_first.amplitude[song_pos];
} else {
boss2_first_amp = 0;
}
if (boss2_second_is_on == true) {
boss2_second_amp = _root.boss2_second.amplitude[song_pos];
if (boss2_second_amp >= 50) {
_root.light1.gotoAndPlay(2);
_root.light2.gotoAndPlay(2);
_root.light3.gotoAndPlay(2);
_root.light4.gotoAndPlay(2);
_root.light5.gotoAndPlay(2);
_root.light6.gotoAndPlay(2);
_root.light7.gotoAndPlay(2);
_root.light8.gotoAndPlay(2);
_root.light9.gotoAndPlay(2);
_root.light10.gotoAndPlay(2);
}
} else {
boss2_second_amp = 0;
}
max_amp = Math.max(boss2_first_amp, boss2_second_amp);
speaker_size = 100 + (max_amp * effect_size);
_root.left_speaker._xscale = speaker_size;
_root.left_speaker._yscale = speaker_size;
_root.right_speaker._xscale = speaker_size;
_root.right_speaker._yscale = speaker_size;
if ((temp_pos == _root.level_end.duration) && (mask_done == false)) {
mask_done = true;
_parent.mask_mc.gotoAndPlay(2);
}
if (((_root.level_end.position >= 1200) && (_root.level_end.position < 5000)) && (level_end_trigger == true)) {
_parent.gotoAndStop(127);
last_step = true;
} else if (last_step == true) {
temp_pos = _root.level_end.position;
}
}
Symbol 515 MovieClip Frame 126
stop();
Instance of Symbol 512 MovieClip "plant_mc" in Symbol 515 MovieClip Frame 126
onClipEvent (load) {
var enemy_shot_counter = 0;
var i = 1;
var shot_speed = 5;
}
onClipEvent (enterFrame) {
enemy_shot_counter = enemy_shot_counter - 1;
if (i > 20) {
i = 1;
}
if ((enemy_shot_counter <= 0) && (_parent.hit_mc.not_end == true)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot" + i, i + 100);
var shot_name = ("enemy_shot" + i);
_parent[shot_name]._width = 10;
_parent[shot_name]._height = 10;
_parent[shot_name].spot = Math.round((Math.random() * 3) + 1);
_parent[shot_name].angle = Math.round((Math.random() * 4) + 1);
if (_parent[shot_name].spot == 1) {
_parent[shot_name]._x = 35;
_parent[shot_name]._y = -3;
if (_parent[shot_name].angle == 1) {
_parent[shot_name].angle = 2.35619449019234;
} else if (_parent[shot_name].angle == 2) {
_parent[shot_name].angle = 2.0943951023932;
} else if (_parent[shot_name].angle == 3) {
_parent[shot_name].angle = 2.61799387799149;
} else if (_parent[shot_name].angle == 4) {
_parent[shot_name].angle = 1.83259571459405;
} else {
_parent[shot_name].angle = 2.87979326579064;
}
} else if (_parent[shot_name].spot == 2) {
_parent[shot_name]._x = 81;
_parent[shot_name]._y = 46;
if (_parent[shot_name].angle == 1) {
_parent[shot_name].angle = 2.0943951023932;
} else if (_parent[shot_name].angle == 2) {
_parent[shot_name].angle = 2.35619449019234;
} else if (_parent[shot_name].angle == 3) {
_parent[shot_name].angle = (Math.PI/2);
} else if (_parent[shot_name].angle == 4) {
_parent[shot_name].angle = 1.83259571459405;
} else {
_parent[shot_name].angle = 1.30899693899575;
}
} else if (_parent[shot_name].spot == 3) {
_parent[shot_name]._x = -34;
_parent[shot_name]._y = 70;
if (_parent[shot_name].angle == 1) {
_parent[shot_name].angle = (Math.PI*2);
} else if (_parent[shot_name].angle == 2) {
_parent[shot_name].angle = 0.523598775598299;
} else if (_parent[shot_name].angle == 3) {
_parent[shot_name].angle = 1.0471975511966;
} else if (_parent[shot_name].angle == 4) {
_parent[shot_name].angle = (Math.PI/4);
} else {
_parent[shot_name].angle = 1.30899693899575;
}
} else {
_parent[shot_name]._x = -91;
_parent[shot_name]._y = 90;
if (_parent[shot_name].angle == 1) {
_parent[shot_name].angle = (Math.PI/2);
} else if (_parent[shot_name].angle == 2) {
_parent[shot_name].angle = 1.0471975511966;
} else if (_parent[shot_name].angle == 3) {
_parent[shot_name].angle = 0.523598775598299;
} else if (_parent[shot_name].angle == 4) {
_parent[shot_name].angle = (Math.PI/4);
} else {
_parent[shot_name].angle = 1.30899693899575;
}
}
_parent[shot_name].xmove = Math.cos(_parent[shot_name].angle) * shot_speed;
_parent[shot_name].ymove = Math.sin(_parent[shot_name].angle) * shot_speed;
i = i + 1;
enemy_shot_counter = 5;
}
}
Instance of Symbol 449 MovieClip "good_ship" in Symbol 515 MovieClip Frame 126
onClipEvent (load) {
var bullet_count = -1;
var i = 1;
var stop_movement = false;
}
onClipEvent (enterFrame) {
if (stop_movement == false) {
if (Key.isDown(39) && (this._x < 98)) {
this._x = this._x + 4;
} else if (Key.isDown(68) && (this._x < 98)) {
this._x = this._x + 4;
}
if (Key.isDown(37) && (this._x > -96)) {
this._x = this._x - 4;
} else if (Key.isDown(65) && (this._x > -96)) {
this._x = this._x - 4;
}
if (Key.isDown(38) && (this._y > -80)) {
this._y = this._y - 4;
} else if (Key.isDown(87) && (this._y > -80)) {
this._y = this._y - 4;
}
if (Key.isDown(40) && (this._y < 232)) {
this._y = this._y + 4;
} else if (Key.isDown(83) && (this._y < 232)) {
this._y = this._y + 4;
}
if (((Key.isDown(32) && (bullet_count < 0)) && (_parent.hit_mc.good_ship_hit == false)) && (_parent.hit_mc.not_end == true)) {
if (_parent.music_mc.fire_mode == true) {
_parent.attachMovie("fire_bullet_linkage", "bullet" + i, i + 950);
var bullet_name = ("bullet" + i);
_parent[bullet_name]._x = this._x;
_parent[bullet_name]._y = this._y - 30;
_parent[bullet_name]._xscale = 50;
_parent[bullet_name]._yscale = 50;
} else {
_parent.attachMovie("bullet_linkage", "bullet" + i, i + 950);
var bullet_name = ("bullet" + i);
_parent[bullet_name]._x = this._x;
_parent[bullet_name]._y = this._y - 30;
_parent[bullet_name]._xscale = 25;
_parent[bullet_name]._yscale = 25;
}
if (i == 10) {
i = 0;
}
i = i + 1;
bullet_count = 6;
}
}
bullet_count = bullet_count - 1;
}
Instance of Symbol 345 MovieClip "hit_mc" in Symbol 515 MovieClip Frame 126
onClipEvent (load) {
var alpha_change = 100;
var plant_hit_count = 0;
var ship_damaged = 0;
var good_ship_hit = false;
var fade_over = false;
var not_end = true;
var plant_life = 10;
var plant_death = 100;
var plant_death_2 = (100 / plant_death);
}
onClipEvent (enterFrame) {
ship_damaged = ship_damaged - 1;
if (not_end == true) {
var i = 1;
while (i <= 20) {
var shot_name = ("enemy_shot" + i);
_parent[shot_name]._x = _parent[shot_name]._x + _parent[shot_name].xmove;
_parent[shot_name]._y = _parent[shot_name]._y + _parent[shot_name].ymove;
if (_parent[shot_name].hitTest(_parent.good_ship.hit_box) && (ship_damaged < 0)) {
_parent.good_ship.gotoAndStop(2);
good_ship_hit = true;
ship_damaged = 40;
_root.life_number = _root.life_number - 1;
}
if (((_parent[shot_name]._x < -120) || (_parent[shot_name]._x > 110)) || (_parent[shot_name]._y > 240)) {
removeMovieClip(_parent[shot_name]);
}
i++;
}
} else if (fade_over == false) {
var i = 1;
while (i <= 20) {
var shot_name = ("enemy_shot" + i);
alpha_change = alpha_change - 1;
_parent[shot_name]._alpha = alpha_change;
i++;
}
if (alpha_change <= 3) {
var i = 1;
while (i <= 20) {
var shot_name = ("enemy_shot" + i);
removeMovieClip(_parent[shot_name]);
i++;
}
fade_over = true;
}
}
if ((ship_damaged < 0) && (not_end == true)) {
if ((_parent.plant_mc.hit_area_mc.hitTest(_parent.good_ship) || (_parent.plant_mc.hit_area_2_mc.hitTest(_parent.good_ship))) || (_parent.plant_mc.hit_area_3_mc.hitTest(_parent.good_ship))) {
_parent.good_ship.gotoAndStop(2);
good_ship_hit = true;
ship_damaged = 40;
_root.life_number = _root.life_number - 1;
}
}
_root.life_bar.gotoAndStop(_root.life_number + 1);
if (ship_damaged == 0) {
_parent.good_ship.gotoAndStop(1);
good_ship_hit = false;
}
if (_root.life_number <= 0) {
not_end = false;
_parent.good_ship.stop_movement = true;
_root.boss2_first.stop();
_root.boss2_second.stop();
var a = 1;
while (a <= 10) {
var bullet_name = ("bullet" + a);
removeMovieClip(_parent[bullet_name]);
a++;
}
_parent.gotoAndStop(128);
}
plant_hit_count = plant_hit_count - 1;
if (_parent.good_ship.stop_movement == false) {
var a = 1;
while (a <= 10) {
var bullet_name = ("bullet" + a);
_parent[bullet_name]._y = _parent[bullet_name]._y - 6;
if (_parent[bullet_name]._y < -100) {
removeMovieClip(_parent[bullet_name]);
}
if ((_parent[bullet_name].hitTest(_parent.plant_mc.hit_box_mc) && (plant_hit_count < 0)) && (not_end == true)) {
removeMovieClip(_parent[bullet_name]);
_parent.plant_mc.gotoAndStop(2);
plant_hit_count = 10;
plant_death = plant_death - 1;
_root.boss2_second.setVolume(100);
_parent.sound_mc.boss2_second_is_on = true;
}
a++;
}
}
if ((plant_hit_count == -1) && (not_end == true)) {
_parent.plant_mc.gotoAndStop(1);
_root.boss2_second.setVolume(0);
_parent.sound_mc.boss2_second_is_on = false;
}
if (plant_death == 0) {
good_ship_hit = true;
not_end = false;
_root.blowing_up.start(0, 0);
plant_death = -1;
_parent.plant_mc.gotoAndStop(3);
}
if (((_root.blowing_up.position >= 4985) && (_root.blowing_up.position < 10000)) && (plant_death == -1)) {
_parent.final_blow_mc.gotoAndPlay(2);
plant_death = plant_death - 1;
} else if ((plant_death <= -2) && (plant_death > -35)) {
plant_death = plant_death - 1;
} else if (plant_death == -35) {
plant_death = -100;
_parent.plant_mc.gotoAndStop(4);
}
_parent.plant_mc.red_plant_mc._alpha = 100 - (plant_death * plant_death_2);
_parent.plant_mc.red_plant_2_mc._alpha = 100 - (plant_death * plant_death_2);
}
Symbol 515 MovieClip Frame 127
stop();
Symbol 515 MovieClip Frame 128
stop();
Symbol 516 MovieClip Frame 1
_quality = "LOW";
_root.level_light1.gotoAndStop(1);
_root.level_light2.gotoAndStop(1);
_root.level_light3.gotoAndStop(2);
Instance of Symbol 345 MovieClip in Symbol 516 MovieClip Frame 1
onClipEvent (load) {
_root.digital_noise.setVolume(60);
_root.digital_noise.start(0, 0);
}
Instance of Symbol 449 MovieClip "good_ship" in Symbol 516 MovieClip Frame 85
onClipEvent (load) {
var bullet_count = -1;
var i = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(39) && (this._x < 246)) {
this._x = this._x + 4;
} else if (Key.isDown(68) && (this._x < 246)) {
this._x = this._x + 4;
}
if (Key.isDown(37) && (this._x > 54)) {
this._x = this._x - 4;
} else if (Key.isDown(65) && (this._x > 54)) {
this._x = this._x - 4;
}
if (Key.isDown(38) && (this._y > -316)) {
this._y = this._y - 4;
} else if (Key.isDown(87) && (this._y > -316)) {
this._y = this._y - 4;
}
if (Key.isDown(40) && (this._y < -4)) {
this._y = this._y + 4;
} else if (Key.isDown(83) && (this._y < -4)) {
this._y = this._y + 4;
}
if ((Key.isDown(32) && (bullet_count < 0)) && (_parent.first_mc.good_ship_blinking == false)) {
if (_parent.music_mc.fire_mode == true) {
_parent.attachMovie("fire_bullet_linkage", "bullet" + i, i + 950);
var bullet_name = ("bullet" + i);
_parent[bullet_name]._x = this._x;
_parent[bullet_name]._y = this._y - 30;
_parent[bullet_name]._xscale = 50;
_parent[bullet_name]._yscale = 50;
} else {
_parent.attachMovie("bullet_linkage", "bullet" + i, i + 950);
var bullet_name = ("bullet" + i);
_parent[bullet_name]._x = this._x;
_parent[bullet_name]._y = this._y - 30;
_parent[bullet_name]._xscale = 25;
_parent[bullet_name]._yscale = 25;
}
if (i == 10) {
i = 0;
}
i = i + 1;
bullet_count = 6;
}
bullet_count = bullet_count - 1;
var a = 1;
while (a <= 10) {
var bullet_name = ("bullet" + a);
_parent[bullet_name]._y = _parent[bullet_name]._y - 6;
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[bullet_name]);
}
if (_parent[bullet_name]._y < -350) {
removeMovieClip(_parent[bullet_name]);
}
a++;
}
}
Symbol 516 MovieClip Frame 151
stop();
Instance of Symbol 345 MovieClip in Symbol 516 MovieClip Frame 151
onClipEvent (load) {
var random_number = 0;
var i = 1;
var frequency_number = 95;
var enemy_count = 0;
var enemy_ii_speed = 5;
var loop_count = 3;
var shot_count = 30;
var shot_color = 0;
var shot_selection = 0;
var shot_reset = false;
var shot_number = 1;
}
onClipEvent (enterFrame) {
rand_number = Math.random() * 100;
if ((rand_number > frequency_number) && (enemy_count <= 0)) {
rand_number = Math.random() * 5;
if (rand_number < 1) {
_parent.attachMovie("blue_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 1;
} else if (rand_number < 2) {
_parent.attachMovie("red_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 2;
} else if (rand_number < 3) {
_parent.attachMovie("orange_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 3;
} else if (rand_number < 4) {
_parent.attachMovie("green_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 4;
} else {
_parent.attachMovie("purple_ii_linkage", "enemy_ii" + i, i + 120);
var enemy_name = ("enemy_ii" + i);
_parent[enemy_name].coloring = 5;
}
_parent[enemy_name]._x = ((Math.random() * 160) + 20) + 50;
_parent[enemy_name]._y = -350;
_parent[enemy_name]._xscale = 35;
_parent[enemy_name]._yscale = 35;
enemy_count = 51;
i = i + 1;
}
enemy_count = enemy_count - 1;
if (i >= (loop_count + 1)) {
i = 1;
}
if (shot_count <= 0) {
shot_color = Math.random() * 5;
shot_selection = Math.round(Math.random() * loop_count);
shot_reset = true;
}
var a = 1;
while (a <= loop_count) {
var enemy_name = ("enemy_ii" + a);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[enemy_name]);
}
if ((_parent[enemy_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) && (_parent[enemy_name].is_hit2 != 1)) {
_parent.good_ship.gotoAndStop(2);
_parent.length_mc.score = _parent.length_mc.score - 500;
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
}
_parent[enemy_name]._y = _parent[enemy_name]._y + enemy_ii_speed;
var b = 1;
while (b <= 10) {
var bullet_name = ("bullet" + b);
var hit_test = _parent[bullet_name].hitTest(_parent[enemy_name]);
if (hit_test && (_parent[enemy_name].is_hit != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit = 1;
if (_parent.music_mc.fire_mode == true) {
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_ii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit2 = 1;
_parent.length_mc.score = _parent.length_mc.score + 400;
}
} else if (hit_test && (_parent[enemy_name].is_hit2 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_ii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit2 = 1;
_parent.length_mc.score = _parent.length_mc.score + 200;
}
b++;
}
if ((((shot_count <= 0) && (shot_color < 1)) && (shot_selection == a)) && (_parent[enemy_name].no_shot != 1)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot2" + shot_number, shot_number + 220);
var shot_name = ("enemy_shot2" + shot_number);
_parent[shot_name]._x = _parent[enemy_name]._x;
_parent[shot_name]._y = _parent[enemy_name]._y + 6;
shot_color = 50;
shot_selection = 123335 /* 0x01E1C7 */;
shot_number = shot_number + 1;
}
if (_parent[enemy_name]._y > 10) {
removeMovieClip(_parent[enemy_name]);
}
a++;
}
var c = 1;
while (c <= 10) {
var shot_name = ("enemy_shot2" + c);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[shot_name]);
}
if (_parent[shot_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) {
removeMovieClip(_parent[shot_name]);
_parent.good_ship.gotoAndStop(2);
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
_parent.length_mc.score = _parent.length_mc.score - 500;
}
_parent[shot_name]._y = _parent[shot_name]._y + 10;
c++;
}
if (shot_reset == true) {
shot_count = 11;
shot_reset = false;
}
if (shot_number == 11) {
shot_number = 1;
}
shot_count = shot_count - 1;
}
Instance of Symbol 345 MovieClip in Symbol 516 MovieClip Frame 151
onClipEvent (load) {
var random_number = 0;
var i = 1;
var frequency_number = 96.5;
var enemy_count = 0;
var enemy_iii_speed = 4;
var loop_count = 3;
var shot_count = 30;
var shot_color = 0;
var shot_selection = 0;
var shot_reset = false;
var shot_number = 1;
}
onClipEvent (enterFrame) {
rand_number = Math.random() * 100;
if ((rand_number > frequency_number) && (enemy_count <= 0)) {
rand_number = Math.random() * 5;
if (rand_number < 1) {
_parent.attachMovie("blue_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 1;
} else if (rand_number < 2) {
_parent.attachMovie("red_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 2;
} else if (rand_number < 3) {
_parent.attachMovie("orange_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 3;
} else if (rand_number < 4) {
_parent.attachMovie("green_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 4;
} else {
_parent.attachMovie("purple_iii_linkage", "enemy_iii" + i, i + 140);
var enemy_name = ("enemy_iii" + i);
_parent[enemy_name].coloring = 5;
}
_parent[enemy_name]._x = ((Math.random() * 140) + 30) + 50;
_parent[enemy_name]._y = -350;
_parent[enemy_name]._xscale = 45;
_parent[enemy_name]._yscale = 45;
enemy_count = 61;
i = i + 1;
}
enemy_count = enemy_count - 1;
if (i >= (loop_count + 1)) {
i = 1;
}
if (shot_count <= 0) {
shot_color = Math.random() * 5;
shot_selection = Math.round(Math.random() * loop_count);
shot_reset = true;
}
var a = 1;
while (a <= loop_count) {
var enemy_name = ("enemy_iii" + a);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[enemy_name]);
}
if ((_parent[enemy_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) && (_parent[enemy_name].is_hit3 != 1)) {
_parent.good_ship.gotoAndStop(2);
_parent.length_mc.score = _parent.length_mc.score - 500;
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
}
_parent[enemy_name]._y = _parent[enemy_name]._y + enemy_iii_speed;
var b = 1;
while (b <= 10) {
var bullet_name = ("bullet" + b);
var hit_test = _parent[bullet_name].hitTest(_parent[enemy_name]);
if (hit_test && (_parent[enemy_name].is_hit != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit = 1;
} else if (hit_test && (_parent[enemy_name].is_hit2 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit2 = 1;
if (_parent.music_mc.fire_mode == true) {
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_iii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit3 = 1;
_parent.length_mc.score = _parent.length_mc.score + 600;
}
} else if (hit_test && (_parent[enemy_name].is_hit3 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_iii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit3 = 1;
_parent.length_mc.score = _parent.length_mc.score + 300;
}
b++;
}
if ((((shot_count <= 0) && (shot_color < 1)) && (shot_selection == a)) && (_parent[enemy_name].no_shot != 1)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot3" + shot_number, shot_number + 240);
var shot_name = ("enemy_shot3" + shot_number);
_parent[shot_name]._x = _parent[enemy_name]._x;
_parent[shot_name]._y = _parent[enemy_name]._y + 6;
shot_color = 50;
shot_selection = 123335 /* 0x01E1C7 */;
shot_number = shot_number + 1;
}
if (_parent[enemy_name]._y > 10) {
removeMovieClip(_parent[enemy_name]);
}
a++;
}
var c = 1;
while (c <= 10) {
var shot_name = ("enemy_shot3" + c);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[shot_name]);
}
if (_parent[shot_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) {
removeMovieClip(_parent[shot_name]);
_parent.good_ship.gotoAndStop(2);
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
_parent.length_mc.score = _parent.length_mc.score - 500;
}
_parent[shot_name]._y = _parent[shot_name]._y + 10;
c++;
}
if (shot_reset == true) {
shot_count = 11;
shot_reset = false;
}
if (shot_number == 11) {
shot_number = 1;
}
shot_count = shot_count - 1;
}
Instance of Symbol 345 MovieClip in Symbol 516 MovieClip Frame 151
onClipEvent (load) {
var random_number = 0;
var i = 1;
var frequency_number = 98;
var enemy_count = 0;
var enemy_iiii_speed = 3;
var loop_count = 3;
var shot_count = 30;
var shot_color = 0;
var shot_selection = 0;
var shot_reset = false;
var shot_number = 1;
}
onClipEvent (enterFrame) {
rand_number = Math.random() * 100;
if ((rand_number > frequency_number) && (enemy_count <= 0)) {
rand_number = Math.random() * 5;
if (rand_number < 1) {
_parent.attachMovie("blue_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 1;
} else if (rand_number < 2) {
_parent.attachMovie("red_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 2;
} else if (rand_number < 3) {
_parent.attachMovie("orange_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 3;
} else if (rand_number < 4) {
_parent.attachMovie("green_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 4;
} else {
_parent.attachMovie("purple_iiii_linkage", "enemy_iiii" + i, i + 160);
var enemy_name = ("enemy_iiii" + i);
_parent[enemy_name].coloring = 5;
}
_parent[enemy_name]._x = ((Math.random() * 120) + 40) + 50;
_parent[enemy_name]._y = -350;
_parent[enemy_name]._xscale = 55;
_parent[enemy_name]._yscale = 55;
enemy_count = 71;
i = i + 1;
}
enemy_count = enemy_count - 1;
if (i >= (loop_count + 1)) {
i = 1;
}
if (shot_count <= 0) {
shot_color = Math.random() * 5;
shot_selection = Math.round(Math.random() * loop_count);
shot_reset = true;
}
var a = 1;
while (a <= loop_count) {
var enemy_name = ("enemy_iiii" + a);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[enemy_name]);
}
if ((_parent[enemy_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) && (_parent[enemy_name].is_hit4 != 1)) {
_parent.good_ship.gotoAndStop(2);
_parent.length_mc.score = _parent.length_mc.score - 500;
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
}
_parent[enemy_name]._y = _parent[enemy_name]._y + enemy_iiii_speed;
var b = 1;
while (b <= 10) {
var bullet_name = ("bullet" + b);
var hit_test = _parent[bullet_name].hitTest(_parent[enemy_name]);
if (hit_test && (_parent[enemy_name].is_hit != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit = 1;
} else if (hit_test && (_parent[enemy_name].is_hit2 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit2 = 1;
} else if (hit_test && (_parent[enemy_name].is_hit3 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].is_hit3 = 1;
if (_parent.music_mc.fire_mode == true) {
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_iiii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit4 = 1;
_parent.length_mc.score = _parent.length_mc.score + 800;
}
} else if (hit_test && (_parent[enemy_name].is_hit4 != 1)) {
removeMovieClip(_parent[bullet_name]);
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_iiii_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent[enemy_name].is_hit4 = 1;
_parent.length_mc.score = _parent.length_mc.score + 400;
}
b++;
}
if ((((shot_count <= 0) && (shot_color < 1)) && (shot_selection == a)) && (_parent[enemy_name].no_shot != 1)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot4" + shot_number, shot_number + 260);
var shot_name = ("enemy_shot4" + shot_number);
_parent[shot_name]._x = _parent[enemy_name]._x;
_parent[shot_name]._y = _parent[enemy_name]._y + 6;
shot_color = 50;
shot_selection = 123335 /* 0x01E1C7 */;
shot_number = shot_number + 1;
}
if (_parent[enemy_name]._y > 10) {
removeMovieClip(_parent[enemy_name]);
}
a++;
}
var c = 1;
while (c <= 10) {
var shot_name = ("enemy_shot4" + c);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[shot_name]);
}
if (_parent[shot_name].hitTest(_parent.good_ship) && (_parent.first_mc.good_ship_hit == -1)) {
removeMovieClip(_parent[shot_name]);
_parent.good_ship.gotoAndStop(2);
_parent.first_mc.good_ship_blinking = true;
_parent.first_mc.good_ship_hit = 40;
_parent.length_mc.score = _parent.length_mc.score - 500;
}
_parent[shot_name]._y = _parent[shot_name]._y + 10;
c++;
}
if (shot_reset == true) {
shot_count = 11;
shot_reset = false;
}
if (shot_number == 11) {
shot_number = 1;
}
shot_count = shot_count - 1;
}
Instance of Symbol 345 MovieClip "first_mc" in Symbol 516 MovieClip Frame 151
onClipEvent (load) {
var random_number = 0;
var i = 1;
var frequency_number = 90;
var enemy_count = 0;
var enemy_i_speed = 6;
var loop_count = 3;
var shot_count = 30;
var shot_color = 0;
var shot_selection = 0;
var shot_reset = false;
var shot_number = 1;
var good_ship_hit = -1;
var good_ship_blinking = false;
}
onClipEvent (enterFrame) {
rand_number = Math.random() * 100;
if ((rand_number > frequency_number) && (enemy_count <= 0)) {
rand_number = Math.random() * 5;
if (rand_number < 1) {
_parent.attachMovie("blue_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 1;
} else if (rand_number < 2) {
_parent.attachMovie("red_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 2;
} else if (rand_number < 3) {
_parent.attachMovie("orange_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 3;
} else if (rand_number < 4) {
_parent.attachMovie("green_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 4;
} else {
_parent.attachMovie("purple_i_linkage", "enemy_i" + i, i + 100);
var enemy_name = ("enemy_i" + i);
_parent[enemy_name].coloring = 5;
}
_parent[enemy_name]._x = ((Math.random() * 180) + 10) + 50;
_parent[enemy_name]._y = -350;
_parent[enemy_name]._xscale = 25;
_parent[enemy_name]._yscale = 25;
enemy_count = 41;
i = i + 1;
}
enemy_count = enemy_count - 1;
if (i >= (loop_count + 1)) {
i = 1;
}
if (shot_count <= 0) {
shot_color = Math.random() * 5;
shot_selection = Math.round(Math.random() * loop_count);
shot_reset = true;
}
var a = 1;
while (a <= loop_count) {
var enemy_name = ("enemy_i" + a);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[enemy_name]);
}
if ((_parent[enemy_name].hitTest(_parent.good_ship) && (good_ship_hit == -1)) && (_parent[enemy_name].is_hit != 1)) {
_parent.good_ship.gotoAndStop(2);
_parent.length_mc.score = _parent.length_mc.score - 500;
good_ship_blinking = true;
good_ship_hit = 40;
}
_parent[enemy_name]._y = _parent[enemy_name]._y + enemy_i_speed;
var b = 1;
while (b <= 10) {
var bullet_name = ("bullet" + b);
if (_parent[bullet_name].hitTest(_parent[enemy_name]) && (_parent[enemy_name].is_hit != 1)) {
if (_parent.music_mc.fire_mode == false) {
removeMovieClip(_parent[bullet_name]);
_parent.length_mc.score = _parent.length_mc.score + -100;
}
_parent[enemy_name].is_hit = 1;
_parent[enemy_name].gotoAndPlay(2);
_parent.music_mc.enemy_i_hit = _parent[enemy_name].coloring;
_parent[enemy_name].no_shot = 1;
_parent.length_mc.score = _parent.length_mc.score + 200;
}
b++;
}
if ((((shot_count <= 0) && (shot_color < 1)) && (shot_selection == a)) && (_parent[enemy_name].no_shot != 1)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot" + shot_number, shot_number + 200);
var shot_name = ("enemy_shot" + shot_number);
_parent[shot_name]._x = _parent[enemy_name]._x;
_parent[shot_name]._y = _parent[enemy_name]._y + 6;
shot_color = 50;
shot_selection = 123335 /* 0x01E1C7 */;
shot_number = shot_number + 1;
}
if (_parent[enemy_name]._y > 10) {
removeMovieClip(_parent[enemy_name]);
}
a++;
}
var c = 1;
while (c <= 10) {
var shot_name = ("enemy_shot" + c);
if (_parent.length_mc.removal_done != 0) {
removeMovieClip(_parent[shot_name]);
}
if (_parent[shot_name].hitTest(_parent.good_ship) && (good_ship_hit == -1)) {
removeMovieClip(_parent[shot_name]);
_parent.good_ship.gotoAndStop(2);
good_ship_blinking = true;
good_ship_hit = 40;
_parent.length_mc.score = _parent.length_mc.score - 500;
}
_parent[shot_name]._y = _parent[shot_name]._y + 10;
c++;
}
if (good_ship_hit >= 1) {
good_ship_hit = good_ship_hit - 1;
}
if ((good_ship_hit == 0) && (_parent.music_mc.fire_mode == false)) {
_parent.good_ship.gotoAndStop(1);
good_ship_blinking = false;
_parent.music_mc.punished = false;
good_ship_hit = -1;
} else if ((good_ship_hit == 0) && (_parent.music_mc.fire_mode == true)) {
_parent.good_ship.gotoAndStop(3);
good_ship_blinking = false;
_parent.music_mc.punished = false;
good_ship_hit = -1;
}
if (shot_reset == true) {
shot_count = 11;
shot_reset = false;
}
if (shot_number == 11) {
shot_number = 1;
}
shot_count = shot_count - 1;
}
Instance of Symbol 345 MovieClip "speakers_mc" in Symbol 516 MovieClip Frame 151
onClipEvent (load) {
var song2_bass_is_on = false;
var song2_bass_amp = 0;
var song2_arp_is_on = false;
var song2_arp_amp = 0;
var song2_pluck_is_on = false;
var song2_pluck_amp = 0;
var song2_synth_is_on = false;
var song2_synth_amp = 0;
var song2_drums_is_on = false;
var song2_drums_amp = 0;
var song2_pos = 0;
var max_amp = 0;
var speaker_size = 0;
var effect_size = 0.1;
var sample_length = 27429;
var amp_array_length = 822;
}
onClipEvent (enterFrame) {
song2_pos = Math.round((_root.song2_synth.position / sample_length) * amp_array_length);
if (song2_bass_is_on == true) {
song2_bass_amp = _root.song2_bass.amplitude[song2_pos];
if (song2_bass_amp >= 20) {
_root.light5.gotoAndPlay(2);
_root.light3.gotoAndPlay(2);
}
} else {
song2_bass_amp = 0;
}
if (song2_arp_is_on == true) {
song2_arp_amp = _root.song2_arp.amplitude[song2_pos];
if (song2_arp_amp >= 10) {
_root.light1.gotoAndPlay(2);
_root.light8.gotoAndPlay(2);
}
} else {
song2_arp_amp = 0;
}
if (song2_pluck_is_on == true) {
song2_pluck_amp = _root.song2_pluck.amplitude[song2_pos];
if (song2_pluck_amp >= 20) {
_root.light2.gotoAndPlay(2);
_root.light10.gotoAndPlay(2);
}
} else {
song2_pluck_amp = 0;
}
if (song2_synth_is_on == true) {
song2_synth_amp = _root.song2_synth.amplitude[song2_pos];
if (song2_synth_amp >= 10) {
_root.light6.gotoAndPlay(2);
_root.light4.gotoAndPlay(2);
}
} else {
song2_synth_amp = 0;
}
if (song2_drums_is_on == true) {
song2_drums_amp = _root.song2_drums.amplitude[song2_pos];
if (song2_drums_amp >= 35) {
_root.light9.gotoAndPlay(2);
_root.light7.gotoAndPlay(2);
}
} else {
song2_drums_amp = 0;
}
max_amp = Math.max(song2_bass_amp, song2_arp_amp);
max_amp = Math.max(max_amp, song2_pluck_amp);
max_amp = Math.max(max_amp, song2_synth_amp);
speaker_size = 100 + (max_amp * effect_size);
_root.left_speaker._xscale = speaker_size;
_root.left_speaker._yscale = speaker_size;
_root.right_speaker._xscale = speaker_size;
_root.right_speaker._yscale = speaker_size;
if (_parent.music_mc.fire_mode == true) {
_root.fire_light.gotoAndStop(2);
} else {
_root.fire_light.gotoAndStop(1);
}
}
Instance of Symbol 345 MovieClip "music_mc" in Symbol 516 MovieClip Frame 151
onClipEvent (load) {
_root.song2_synth.start(0, 99);
_root.song2_synth.setVolume(0);
_root.song2_bass.start(0, 99);
_root.song2_bass.setVolume(0);
_root.song2_arp.start(0, 99);
_root.song2_arp.setVolume(0);
_root.song2_pluck.start(0, 99);
_root.song2_pluck.setVolume(0);
_root.song2_drums.start(0, 99);
_root.song2_drums.setVolume(0);
var is_ship_hit = false;
var enemy_i_hit = 0;
var enemy_ii_hit = 0;
var enemy_iii_hit = 0;
var enemy_iiii_hit = 0;
var blue_counter = 0;
var red_counter = 0;
var orange_counter = 0;
var green_counter = 0;
var purple_counter = 0;
var sample_length = 27429;
var song_pos = 0;
var step_off = 0;
var punished = false;
var fire_mode = false;
var fire_change = 0;
}
onClipEvent (enterFrame) {
if (enemy_i_hit != 0) {
if (enemy_i_hit == 1) {
blue_counter = blue_counter + 1;
enemy_i_hit = 0;
}
if (enemy_i_hit == 2) {
red_counter = red_counter + 1;
enemy_i_hit = 0;
}
if (enemy_i_hit == 3) {
orange_counter = orange_counter + 1;
enemy_i_hit = 0;
}
if (enemy_i_hit == 4) {
green_counter = green_counter + 1;
enemy_i_hit = 0;
}
if (enemy_i_hit == 5) {
purple_counter = purple_counter + 1;
enemy_i_hit = 0;
}
}
if (enemy_ii_hit != 0) {
if (enemy_ii_hit == 1) {
blue_counter = blue_counter + 2;
enemy_ii_hit = 0;
}
if (enemy_ii_hit == 2) {
red_counter = red_counter + 2;
enemy_ii_hit = 0;
}
if (enemy_ii_hit == 3) {
orange_counter = orange_counter + 2;
enemy_ii_hit = 0;
}
if (enemy_ii_hit == 4) {
green_counter = green_counter + 2;
enemy_ii_hit = 0;
}
if (enemy_ii_hit == 5) {
purple_counter = purple_counter + 2;
enemy_ii_hit = 0;
}
}
if (enemy_iii_hit != 0) {
if (enemy_iii_hit == 1) {
blue_counter = blue_counter + 3;
enemy_iii_hit = 0;
}
if (enemy_iii_hit == 2) {
red_counter = red_counter + 3;
enemy_iii_hit = 0;
}
if (enemy_iii_hit == 3) {
orange_counter = orange_counter + 3;
enemy_iii_hit = 0;
}
if (enemy_iii_hit == 4) {
green_counter = green_counter + 3;
enemy_iii_hit = 0;
}
if (enemy_iii_hit == 5) {
purple_counter = purple_counter + 3;
enemy_iii_hit = 0;
}
}
if (enemy_iiii_hit != 0) {
if (enemy_iiii_hit == 1) {
blue_counter = blue_counter + 4;
enemy_iiii_hit = 0;
}
if (enemy_iiii_hit == 2) {
red_counter = red_counter + 4;
enemy_iiii_hit = 0;
}
if (enemy_iiii_hit == 3) {
orange_counter = orange_counter + 4;
enemy_iiii_hit = 0;
}
if (enemy_iiii_hit == 4) {
green_counter = green_counter + 4;
enemy_iiii_hit = 0;
}
if (enemy_iiii_hit == 5) {
purple_counter = purple_counter + 4;
enemy_iiii_hit = 0;
}
}
if (blue_counter > 0) {
_root.song2_drums.setVolume(100);
_parent.speakers_mc.song2_synth_is_on = true;
} else {
_root.song2_drums.setVolume(0);
_parent.speakers_mc.song2_synth_is_on = false;
}
if (red_counter > 0) {
_root.song2_bass.setVolume(130);
_parent.speakers_mc.song2_bass_is_on = true;
} else {
_root.song2_bass.setVolume(0);
_parent.speakers_mc.song2_bass_is_on = false;
}
if (orange_counter > 0) {
_root.song2_arp.setVolume(100);
_parent.speakers_mc.song2_arp_is_on = true;
} else {
_root.song2_arp.setVolume(0);
_parent.speakers_mc.song2_arp_is_on = false;
}
if (green_counter > 0) {
_root.song2_pluck.setVolume(100);
_parent.speakers_mc.song2_pluck_is_on = true;
} else {
_root.song2_pluck.setVolume(0);
_parent.speakers_mc.song2_pluck_is_on = false;
}
if (purple_counter > 0) {
_root.song2_synth.setVolume(100);
_parent.speakers_mc.song2_drums_is_on = true;
} else {
_root.song2_synth.setVolume(0);
_parent.speakers_mc.song2_drums_is_on = false;
}
if (blue_counter > 8) {
blue_counter = 8;
}
if (red_counter > 8) {
red_counter = 8;
}
if (orange_counter > 8) {
orange_counter = 8;
}
if (green_counter > 8) {
green_counter = 8;
}
if (purple_counter > 8) {
purple_counter = 8;
}
_root.blue_bar.gotoAndStop(blue_counter + 1);
_root.red_bar.gotoAndStop(red_counter + 1);
_root.orange_bar.gotoAndStop(orange_counter + 1);
_root.green_bar.gotoAndStop(green_counter + 1);
_root.purple_bar.gotoAndStop(purple_counter + 1);
song_pos = _root.song2_synth.position;
if ((song_pos < (sample_length / 16)) && (step_off != 1)) {
step_off = 1;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length / 8)) && (song_pos >= (sample_length / 16))) && (step_off != 2)) {
step_off = 2;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.1875)) && (song_pos >= (sample_length / 8))) && (step_off != 3)) {
step_off = 3;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.25)) && (song_pos >= (sample_length * 0.1875))) && (step_off != 4)) {
step_off = 4;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.3125)) && (song_pos >= (sample_length * 0.25))) && (step_off != 5)) {
step_off = 5;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.375)) && (song_pos >= (sample_length * 0.3125))) && (step_off != 6)) {
step_off = 6;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.4375)) && (song_pos >= (sample_length * 0.375))) && (step_off != 7)) {
step_off = 7;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.5)) && (song_pos >= (sample_length * 0.4375))) && (step_off != 8)) {
step_off = 8;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.5625)) && (song_pos >= (sample_length * 0.5))) && (step_off != 9)) {
step_off = 9;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.625)) && (song_pos >= (sample_length * 0.5625))) && (step_off != 10)) {
step_off = 10;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.6875)) && (song_pos >= (sample_length * 0.625))) && (step_off != 11)) {
step_off = 11;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.75)) && (song_pos >= (sample_length * 0.6875))) && (step_off != 12)) {
step_off = 12;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.8125)) && (song_pos >= (sample_length * 0.75))) && (step_off != 13)) {
step_off = 13;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.875)) && (song_pos >= (sample_length * 0.8125))) && (step_off != 14)) {
step_off = 14;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if (((song_pos < (sample_length * 0.9375)) && (song_pos >= (sample_length * 0.875))) && (step_off != 15)) {
step_off = 15;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
} else if ((song_pos >= (sample_length * 0.9375)) && (step_off != 16)) {
step_off = 16;
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
}
if ((_parent.first_mc.good_ship_blinking == true) && (punished == false)) {
blue_counter = blue_counter - 1;
red_counter = red_counter - 1;
orange_counter = orange_counter - 1;
green_counter = green_counter - 1;
purple_counter = purple_counter - 1;
punished = true;
}
if (blue_counter < 0) {
blue_counter = 0;
}
if (red_counter < 0) {
red_counter = 0;
}
if (orange_counter < 0) {
orange_counter = 0;
}
if (green_counter < 0) {
green_counter = 0;
}
if (purple_counter < 0) {
purple_counter = 0;
}
if (((((blue_counter > 0) && (red_counter > 0)) && (orange_counter > 0)) && (green_counter > 0)) && (purple_counter > 0)) {
fire_mode = true;
} else {
fire_mode = false;
}
if ((fire_mode == true) && (fire_change == 0)) {
_parent.good_ship.gotoAndStop(3);
fire_change = 1;
} else if ((fire_mode == false) && (fire_change == 1)) {
_parent.good_ship.gotoAndStop(1);
fire_change = 0;
}
}
Instance of Symbol 345 MovieClip "length_mc" in Symbol 516 MovieClip Frame 151
onClipEvent (load) {
var frame_trig = 0;
var frame_limit = 1500;
var current_frame = 0;
var score = 0;
var maxScore = 20000;
var removal_done = 0;
}
onClipEvent (enterFrame) {
current_frame = current_frame + 1;
_root.progress_bar.gotoAndStop(Math.round((current_frame / frame_limit) * 200));
if ((current_frame > frame_limit) && (frame_trig == 0)) {
_parent.attachMovie("mask_2_linkage", "mask", 3000);
_parent.mask._x = 150;
_parent.mask._y = -160;
frame_trig = 1;
}
if ((frame_trig > 0) && (frame_trig < 100)) {
_parent.mask._alpha = frame_trig + 1;
frame_trig = frame_trig + 1;
}
if (frame_trig >= 100) {
if (removal_done == 2) {
_parent.gotoAndStop(152);
removeMovieClip(_parent.mask);
frame_trig = -120;
}
removal_done = removal_done + 1;
}
if (score < 0) {
score = 0;
}
}
Instance of Symbol 345 MovieClip in Symbol 516 MovieClip Frame 153
onClipEvent (load) {
var counter = 1;
}
onClipEvent (enterFrame) {
if (counter <= 50) {
if (_parent.speakers_mc.song2_bass_is_on == true) {
_root.song2_bass.setVolume(_root.song2_bass.getVolume() - 2);
}
if (_parent.speakers_mc.song2_arp_is_on == true) {
_root.song2_arp.setVolume(_root.song2_arp.getVolume() - 2);
}
if (_parent.speakers_mc.song2_pluck_is_on == true) {
_root.song2_pluck.setVolume(_root.song2_pluck.getVolume() - 2);
}
if (_parent.speakers_mc.song2_synth_is_on == true) {
_root.song2_synth.setVolume(_root.song2_synth.getVolume() - 2);
}
if (_parent.speakers_mc.song2_drums_is_on == true) {
_root.song2_drums.setVolume(_root.song2_drums.getVolume() - 2);
}
counter = counter + 1;
} else if (counter < 100) {
_root.song2_bass.stop();
_root.song2_arp.stop();
_root.song2_pluck.stop();
_root.song2_synth.stop();
_root.song2_drums.stop();
_root.blue_bar.gotoAndStop(1);
_root.red_bar.gotoAndStop(1);
_root.orange_bar.gotoAndStop(1);
_root.green_bar.gotoAndStop(1);
_root.purple_bar.gotoAndStop(1);
counter = 500;
}
}
Symbol 516 MovieClip Frame 205
_root.gotoAndPlay(8 + _root.preloader_length);
Symbol 521 MovieClip Frame 7
stop();
Symbol 522 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 2
stop();
Symbol 522 MovieClip Frame 3
stop();
Instance of Symbol 345 MovieClip in Symbol 522 MovieClip Frame 3
onClipEvent (load) {
var counter = 1;
var blow_up_counter = 0;
var i = 1;
}
onClipEvent (enterFrame) {
if (counter <= 75) {
_root.boss1_first.setVolume(_root.boss1_first.getVolume() - 1);
_root.boss1_second.setVolume(_root.boss1_second.getVolume() - 1);
counter = counter + 1;
} else if (counter < 100) {
_root.boss1_first.stop();
_root.boss1_second.stop();
counter = 500;
}
if (blow_up_counter <= 0) {
blow_up_counter = 3;
if (i >= 8) {
i = 1;
}
_parent.attachMovie("blow_up_linkage", "blowup" + i, 3000 + i);
var blow_up_name = ("blowup" + i);
_parent[blow_up_name]._x = (Math.random() * 200) - 100;
_parent[blow_up_name]._y = (Math.random() * 200) - 100;
var scale = ((Math.random() * 90) + 110);
_parent[blow_up_name]._xscale = scale;
_parent[blow_up_name]._yscale = scale;
i = i + 1;
}
blow_up_counter = blow_up_counter - 1;
}
Symbol 522 MovieClip Frame 4
stop();
Symbol 523 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 60
_root.progress_bar.gotoAndStop(1);
_root.life_bar.gotoAndStop(1);
_root.gotoAndPlay(9 + _root.preloader_length);
Instance of Symbol 345 MovieClip "sound_mc" in Symbol 525 MovieClip Frame 1
onClipEvent (load) {
_root.boss1_first.start(0, 999);
_root.boss1_first.setVolume(100);
_root.boss1_second.start(0, 999);
_root.boss1_second.setVolume(0);
var boss1_first_is_on = true;
var boss1_first_amp = 0;
var boss1_second_is_on = false;
var boss1_second_amp = 0;
var song_pos = 0;
var max_amp = 0;
var speaker_size = 0;
var effect_size = 0.1;
var sample_length = 14769;
var amp_array_length = 443;
var temp_pos = -3;
var mask_done = false;
var level_end_trigger = false;
var last_step = false;
var song_pos_2 = 0;
var step = 1;
}
onClipEvent (enterFrame) {
song_pos = Math.round((_root.boss1_first.position / sample_length) * amp_array_length);
song_pos_2 = (_root.boss1_first.position / sample_length) * 4;
if ((song_pos_2 < 1) && (step == 1)) {
_parent.heart_mc.heart_core_mc.gotoAndPlay(1);
_parent.heart_mc.heart_core_mc_2.gotoAndPlay(1);
step = 2;
} else if (((song_pos_2 < 2) && (song_pos_2 >= 1)) && (step == 2)) {
_parent.heart_mc.heart_core_mc.gotoAndPlay(1);
_parent.heart_mc.heart_core_mc_2.gotoAndPlay(1);
step = 3;
} else if (((song_pos_2 < 3) && (song_pos_2 >= 2)) && (step == 3)) {
_parent.heart_mc.heart_core_mc.gotoAndPlay(1);
_parent.heart_mc.heart_core_mc_2.gotoAndPlay(1);
step = 4;
} else if (((song_pos_2 < 4) && (song_pos_2 >= 3)) && (step == 4)) {
_parent.heart_mc.heart_core_mc.gotoAndPlay(1);
_parent.heart_mc.heart_core_mc_2.gotoAndPlay(1);
step = 1;
}
if (boss1_first_is_on == true) {
boss1_first_amp = _root.boss1_first.amplitude[song_pos];
} else {
boss1_first_amp = 0;
}
if (boss1_second_is_on == true) {
boss1_second_amp = _root.boss1_second.amplitude[song_pos];
if (boss1_second_amp >= 50) {
_root.light1.gotoAndPlay(2);
_root.light2.gotoAndPlay(2);
_root.light3.gotoAndPlay(2);
_root.light4.gotoAndPlay(2);
_root.light5.gotoAndPlay(2);
_root.light6.gotoAndPlay(2);
_root.light7.gotoAndPlay(2);
_root.light8.gotoAndPlay(2);
_root.light9.gotoAndPlay(2);
_root.light10.gotoAndPlay(2);
}
} else {
boss1_second_amp = 0;
}
max_amp = Math.max(boss1_first_amp, boss1_second_amp);
speaker_size = 100 + (max_amp * effect_size);
_root.left_speaker._xscale = speaker_size;
_root.left_speaker._yscale = speaker_size;
_root.right_speaker._xscale = speaker_size;
_root.right_speaker._yscale = speaker_size;
if ((temp_pos == _root.level_end.duration) && (mask_done == false)) {
mask_done = true;
_parent.mask_mc.gotoAndPlay(2);
}
if (((_root.level_end.position >= 1200) && (_root.level_end.position < 5000)) && (level_end_trigger == true)) {
_parent.gotoAndStop(127);
last_step = true;
} else if (last_step == true) {
temp_pos = _root.level_end.position;
}
}
Symbol 525 MovieClip Frame 126
stop();
Instance of Symbol 522 MovieClip "heart_mc" in Symbol 525 MovieClip Frame 126
onClipEvent (load) {
var enemy_shot_counter = 0;
var i = 1;
var shot_speed = 5;
}
onClipEvent (enterFrame) {
enemy_shot_counter = enemy_shot_counter - 1;
if (i > 25) {
i = 1;
}
if (((enemy_shot_counter <= 0) && (_parent.hit_mc.not_end == true)) && (step < 30)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot" + i, i + 100);
var shot_name = ("enemy_shot" + i);
_parent[shot_name]._width = 10;
_parent[shot_name]._height = 10;
_parent[shot_name].spot = Math.round((Math.random() * 3) + 1);
_parent[shot_name].angle = Math.round((Math.random() * 4) + 1);
if (_parent[shot_name].angle == 1) {
_parent[shot_name].angle = 0.448798950512828;
} else if (_parent[shot_name].angle == 2) {
_parent[shot_name].angle = 0.897597901025655;
} else if (_parent[shot_name].angle == 3) {
_parent[shot_name].angle = 1.34639685153848;
} else if (_parent[shot_name].angle == 4) {
_parent[shot_name].angle = 1.79519580205131;
} else {
_parent[shot_name].angle = 2.24399475256414;
}
if (_parent[shot_name].spot == 1) {
_parent[shot_name]._x = -64;
_parent[shot_name]._y = 70;
} else if (_parent[shot_name].spot == 2) {
_parent[shot_name]._x = -51;
_parent[shot_name]._y = 66;
} else if (_parent[shot_name].spot == 3) {
_parent[shot_name]._x = -37;
_parent[shot_name]._y = 64;
} else {
_parent[shot_name]._x = -23;
_parent[shot_name]._y = 60;
}
_parent[shot_name].xmove = Math.cos(_parent[shot_name].angle) * shot_speed;
_parent[shot_name].ymove = Math.sin(_parent[shot_name].angle) * shot_speed;
i = i + 1;
enemy_shot_counter = 3;
step = step + 1;
} else if (((enemy_shot_counter <= 0) && (_parent.hit_mc.not_end == true)) && (step < 60)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot" + i, i + 100);
var shot_name = ("enemy_shot" + i);
_parent[shot_name]._width = 10;
_parent[shot_name]._height = 10;
_parent[shot_name].spot = Math.round((Math.random() * 3) + 1);
_parent[shot_name].angle = Math.round((Math.random() * 4) + 1);
if (_parent[shot_name].angle == 1) {
_parent[shot_name].angle = 0.897597901025655;
} else if (_parent[shot_name].angle == 2) {
_parent[shot_name].angle = 1.34639685153848;
} else if (_parent[shot_name].angle == 3) {
_parent[shot_name].angle = 1.79519580205131;
} else if (_parent[shot_name].angle == 4) {
_parent[shot_name].angle = 2.24399475256414;
} else {
_parent[shot_name].angle = 2.69279370307697;
}
if (_parent[shot_name].spot == 1) {
_parent[shot_name]._x = -34;
_parent[shot_name]._y = 60;
} else if (_parent[shot_name].spot == 2) {
_parent[shot_name]._x = 46;
_parent[shot_name]._y = 68;
} else if (_parent[shot_name].spot == 3) {
_parent[shot_name]._x = 57;
_parent[shot_name]._y = 77;
} else {
_parent[shot_name]._x = 72;
_parent[shot_name]._y = 84;
}
_parent[shot_name].xmove = Math.cos(_parent[shot_name].angle) * shot_speed;
_parent[shot_name].ymove = Math.sin(_parent[shot_name].angle) * shot_speed;
i = i + 1;
enemy_shot_counter = 3;
step = step + 1;
} else if (((enemy_shot_counter <= 0) && (_parent.hit_mc.not_end == true)) && (step < 90)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot" + i, i + 100);
var shot_name = ("enemy_shot" + i);
_parent[shot_name]._width = 10;
_parent[shot_name]._height = 10;
_parent[shot_name].spot = Math.round((Math.random() * 3) + 1);
_parent[shot_name].angle = Math.round((Math.random() * 4) + 1);
if (_parent[shot_name].angle == 1) {
_parent[shot_name].angle = 5.38558740615393;
} else if (_parent[shot_name].angle == 2) {
_parent[shot_name].angle = 4.9367884556411;
} else if (_parent[shot_name].angle == 3) {
_parent[shot_name].angle = 4.48798950512828;
} else if (_parent[shot_name].angle == 4) {
_parent[shot_name].angle = 4.03919055461545;
} else {
_parent[shot_name].angle = 3.59039160410262;
}
if (_parent[shot_name].spot == 1) {
_parent[shot_name]._x = 79;
_parent[shot_name]._y = -184;
} else if (_parent[shot_name].spot == 2) {
_parent[shot_name]._x = 70;
_parent[shot_name]._y = 194;
} else if (_parent[shot_name].spot == 3) {
_parent[shot_name]._x = 57;
_parent[shot_name]._y = 202;
} else {
_parent[shot_name]._x = 45;
_parent[shot_name]._y = 208;
}
_parent[shot_name].xmove = Math.cos(_parent[shot_name].angle) * shot_speed;
_parent[shot_name].ymove = Math.sin(_parent[shot_name].angle) * shot_speed;
i = i + 1;
enemy_shot_counter = 3;
step = step + 1;
} else if (((enemy_shot_counter <= 0) && (_parent.hit_mc.not_end == true)) && (step < 120)) {
_parent.attachMovie("enemy_shot_linkage", "enemy_shot" + i, i + 100);
var shot_name = ("enemy_shot" + i);
_parent[shot_name]._width = 10;
_parent[shot_name]._height = 10;
_parent[shot_name].spot = Math.round((Math.random() * 3) + 1);
_parent[shot_name].angle = Math.round((Math.random() * 4) + 1);
if (_parent[shot_name].angle == 1) {
_parent[shot_name].angle = 5.83438635666676;
} else if (_parent[shot_name].angle == 2) {
_parent[shot_name].angle = 5.38558740615393;
} else if (_parent[shot_name].angle == 3) {
_parent[shot_name].angle = 4.9367884556411;
} else if (_parent[shot_name].angle == 4) {
_parent[shot_name].angle = 4.48798950512828;
} else {
_parent[shot_name].angle = 4.03919055461545;
}
if (_parent[shot_name].spot == 1) {
_parent[shot_name]._x = -40;
_parent[shot_name]._y = 195;
} else if (_parent[shot_name].spot == 2) {
_parent[shot_name]._x = -53;
_parent[shot_name]._y = 188;
} else if (_parent[shot_name].spot == 3) {
_parent[shot_name]._x = -64;
_parent[shot_name]._y = 182;
} else {
_parent[shot_name]._x = -75;
_parent[shot_name]._y = 174;
}
_parent[shot_name].xmove = Math.cos(_parent[shot_name].angle) * shot_speed;
_parent[shot_name].ymove = Math.sin(_parent[shot_name].angle) * shot_speed;
i = i + 1;
enemy_shot_counter = 3;
step = step + 1;
}
if (step >= 120) {
step = 0;
}
}
Instance of Symbol 449 MovieClip "good_ship" in Symbol 525 MovieClip Frame 126
onClipEvent (load) {
var bullet_count = -1;
var i = 1;
var stop_movement = false;
}
onClipEvent (enterFrame) {
if (stop_movement == false) {
if (Key.isDown(39) && (this._x < 98)) {
this._x = this._x + 4;
} else if (Key.isDown(68) && (this._x < 98)) {
this._x = this._x + 4;
}
if (Key.isDown(37) && (this._x > -96)) {
this._x = this._x - 4;
} else if (Key.isDown(65) && (this._x > -96)) {
this._x = this._x - 4;
}
if (Key.isDown(38) && (this._y > -80)) {
this._y = this._y - 4;
} else if (Key.isDown(87) && (this._y > -80)) {
this._y = this._y - 4;
}
if (Key.isDown(40) && (this._y < 232)) {
this._y = this._y + 4;
} else if (Key.isDown(83) && (this._y < 232)) {
this._y = this._y + 4;
}
if (((Key.isDown(32) && (bullet_count < 0)) && (_parent.hit_mc.good_ship_hit == false)) && (_parent.hit_mc.not_end == true)) {
if (_parent.music_mc.fire_mode == true) {
_parent.attachMovie("fire_bullet_linkage", "bullet" + i, i + 950);
var bullet_name = ("bullet" + i);
_parent[bullet_name]._x = this._x;
_parent[bullet_name]._y = this._y - 30;
_parent[bullet_name]._xscale = 50;
_parent[bullet_name]._yscale = 50;
} else {
_parent.attachMovie("bullet_linkage", "bullet" + i, i + 950);
var bullet_name = ("bullet" + i);
_parent[bullet_name]._x = this._x;
_parent[bullet_name]._y = this._y - 30;
_parent[bullet_name]._xscale = 25;
_parent[bullet_name]._yscale = 25;
}
if (i == 10) {
i = 0;
}
i = i + 1;
bullet_count = 6;
}
}
bullet_count = bullet_count - 1;
}
Instance of Symbol 345 MovieClip "hit_mc" in Symbol 525 MovieClip Frame 126
onClipEvent (load) {
var alpha_change = 100;
var heart_hit_count = 0;
var ship_damaged = 0;
var good_ship_hit = false;
var fade_over = false;
var not_end = true;
var heart_life = 10;
var heart_death = 100;
var heart_death_2 = (100 / heart_death);
}
onClipEvent (enterFrame) {
ship_damaged = ship_damaged - 1;
if (not_end == true) {
var i = 1;
while (i <= 25) {
var shot_name = ("enemy_shot" + i);
_parent[shot_name]._x = _parent[shot_name]._x + _parent[shot_name].xmove;
_parent[shot_name]._y = _parent[shot_name]._y + _parent[shot_name].ymove;
if (_parent[shot_name].hitTest(_parent.good_ship.hit_box) && (ship_damaged < 0)) {
_parent.good_ship.gotoAndStop(2);
good_ship_hit = true;
ship_damaged = 40;
_root.life_number = _root.life_number - 1;
}
if ((((_parent[shot_name]._x < -120) || (_parent[shot_name]._x > 110)) || (_parent[shot_name]._y > 240)) || (_parent[shot_name]._y < -100)) {
removeMovieClip(_parent[shot_name]);
}
i++;
}
} else if (fade_over == false) {
var i = 1;
while (i <= 25) {
var shot_name = ("enemy_shot" + i);
alpha_change = alpha_change - 1;
_parent[shot_name]._alpha = alpha_change;
i++;
}
if (alpha_change <= 3) {
var i = 1;
while (i <= 25) {
var shot_name = ("enemy_shot" + i);
removeMovieClip(_parent[shot_name]);
i++;
}
fade_over = true;
}
}
if ((ship_damaged < 0) && (not_end == true)) {
if (_parent.heart_mc.hit_area_mc.hitTest(_parent.good_ship)) {
_parent.good_ship.gotoAndStop(2);
good_ship_hit = true;
ship_damaged = 40;
_root.life_number = _root.life_number - 1;
}
}
_root.life_bar.gotoAndStop(_root.life_number + 1);
if (ship_damaged == 0) {
_parent.good_ship.gotoAndStop(1);
good_ship_hit = false;
}
if (_root.life_number <= 0) {
not_end = false;
_parent.good_ship.stop_movement = true;
_root.boss1_first.stop();
_root.boss1_second.stop();
var a = 1;
while (a <= 10) {
var bullet_name = ("bullet" + a);
removeMovieClip(_parent[bullet_name]);
a++;
}
_parent.gotoAndStop(128);
}
heart_hit_count = heart_hit_count - 1;
if (_parent.good_ship.stop_movement == false) {
var a = 1;
while (a <= 10) {
var bullet_name = ("bullet" + a);
_parent[bullet_name]._y = _parent[bullet_name]._y - 6;
if (_parent[bullet_name]._y < -100) {
removeMovieClip(_parent[bullet_name]);
}
if ((_parent[bullet_name].hitTest(_parent.heart_mc.heart_core_mc) && (heart_hit_count < 0)) && (not_end == true)) {
removeMovieClip(_parent[bullet_name]);
_parent.heart_mc.gotoAndStop(2);
heart_hit_count = 10;
heart_death = heart_death - 1;
_root.boss1_second.setVolume(100);
_parent.sound_mc.boss1_second_is_on = true;
}
a++;
}
}
if ((heart_hit_count == -1) && (not_end == true)) {
_parent.heart_mc.gotoAndStop(1);
_root.boss1_second.setVolume(0);
_parent.sound_mc.boss1_second_is_on = false;
}
if (heart_death == 0) {
good_ship_hit = true;
not_end = false;
_root.blowing_up.start(0, 0);
heart_death = -1;
_parent.heart_mc.gotoAndStop(3);
}
if (((_root.blowing_up.position >= 4985) && (_root.blowing_up.position < 10000)) && (heart_death == -1)) {
_parent.final_blow_mc.gotoAndPlay(2);
heart_death = heart_death - 1;
} else if ((heart_death <= -2) && (heart_death > -35)) {
heart_death = heart_death - 1;
} else if (heart_death == -35) {
heart_death = -100;
_parent.heart_mc.gotoAndStop(4);
}
_parent.heart_mc.heart_core_2_mc._alpha = 100 - (heart_death * heart_death_2);
}
Symbol 525 MovieClip Frame 127
stop();
Symbol 525 MovieClip Frame 128
stop();
Symbol 551 MovieClip Frame 57
gotoAndPlay (1);
Instance of Symbol 345 MovieClip "speakers_mc" in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
_root.cong.start(0, 999);
_root.cong.setVolume(0);
var cong_amp = 0;
var song_pos = 0;
var speaker_size = 0;
var effect_size = 0.1;
var sample_length = 6853;
var amp_array_length = 206;
}
onClipEvent (enterFrame) {
song_pos = Math.round((_root.cong.position / sample_length) * amp_array_length);
cong_amp = _root.cong.amplitude[song_pos];
speaker_size = 100 + (cong_amp * effect_size);
_root.left_speaker._xscale = speaker_size;
_root.left_speaker._yscale = speaker_size;
_root.right_speaker._xscale = speaker_size;
_root.right_speaker._yscale = speaker_size;
}
Instance of Symbol 345 MovieClip in Symbol 560 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.cong.setVolume(_root.cong.getVolume() + 1);
}
Instance of Symbol 345 MovieClip in Symbol 560 MovieClip Frame 371
onClipEvent (enterFrame) {
_root.cong.setVolume(_root.cong.getVolume() - 1);
}
Symbol 560 MovieClip Frame 466
_root.cong.stop();
Symbol 560 MovieClip Frame 467
_root.gotoAndPlay(1 + _root.preloader_length);