Section 1
//gui_resultsGrade_280 (rockMonsters_4_fla.gui_resultsGrade_280)
package rockMonsters_4_fla {
import flash.display.*;
public dynamic class gui_resultsGrade_280 extends MovieClip {
public function gui_resultsGrade_280(){
addFrameScript(4, frame5, 8, frame9, 13, frame14, 18, frame19);
}
function frame14(){
stop();
}
function frame19(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
}
}//package rockMonsters_4_fla
Section 2
//gui_resultsWinText_279 (rockMonsters_4_fla.gui_resultsWinText_279)
package rockMonsters_4_fla {
import flash.display.*;
public dynamic class gui_resultsWinText_279 extends MovieClip {
public function gui_resultsWinText_279(){
addFrameScript(4, frame5, 10, frame11);
}
function frame5(){
stop();
}
function frame11(){
stop();
}
}
}//package rockMonsters_4_fla
Section 3
//holdbarSparks_296 (rockMonsters_4_fla.holdbarSparks_296)
package rockMonsters_4_fla {
import flash.display.*;
public dynamic class holdbarSparks_296 extends MovieClip {
public function holdbarSparks_296(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package rockMonsters_4_fla
Section 4
//loadED_76 (rockMonsters_4_fla.loadED_76)
package rockMonsters_4_fla {
import flash.display.*;
public dynamic class loadED_76 extends MovieClip {
public function loadED_76(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package rockMonsters_4_fla
Section 5
//MainTimeline (rockMonsters_4_fla.MainTimeline)
package rockMonsters_4_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class MainTimeline extends MovieClip {
public var loaderBar:MovieClip;
public var lBar:MovieClip;
public var armorButton:SimpleButton;
public var playButton:SimpleButton;
public var newgroundsButton:SimpleButton;
public var game:Game;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 4, frame5);
}
public function goNewgrounds(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.newgrounds.com");
navigateToURL(_local2, "_blank");
}
public function goArmor(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.armorgames.com");
navigateToURL(_local2, "_blank");
}
public function checkLoader(_arg1:Event){
var _local2:int;
_local2 = Math.floor((100 * (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal)));
loaderBar.gotoAndStop(_local2);
trace(_local2);
if (_local2 == 100){
gotoAndStop("play");
this.removeEventListener(Event.ENTER_FRAME, checkLoader);
};
}
function frame3(){
stop();
playButton.addEventListener(MouseEvent.CLICK, playGame);
}
function frame1(){
stop();
this.addEventListener(Event.ENTER_FRAME, checkLoader);
newgroundsButton.addEventListener(MouseEvent.CLICK, goNewgrounds);
armorButton.addEventListener(MouseEvent.CLICK, goArmor);
loaderBar = lBar;
}
function frame5(){
stop();
game = new Game(this.stage);
}
public function playGame(_arg1:MouseEvent){
play();
}
}
}//package rockMonsters_4_fla
Section 6
//ng_Drummer_5 (rockMonsters_4_fla.ng_Drummer_5)
package rockMonsters_4_fla {
import flash.display.*;
public dynamic class ng_Drummer_5 extends MovieClip {
public function ng_Drummer_5(){
addFrameScript(140, frame141);
}
function frame141(){
gotoAndPlay("bb");
}
}
}//package rockMonsters_4_fla
Section 7
//noteSustainedTail_264 (rockMonsters_4_fla.noteSustainedTail_264)
package rockMonsters_4_fla {
import flash.display.*;
public dynamic class noteSustainedTail_264 extends MovieClip {
public function noteSustainedTail_264(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
}
function frame4(){
stop();
}
}
}//package rockMonsters_4_fla
Section 8
//starAnim_257 (rockMonsters_4_fla.starAnim_257)
package rockMonsters_4_fla {
import flash.display.*;
public dynamic class starAnim_257 extends MovieClip {
public function starAnim_257(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package rockMonsters_4_fla
Section 9
//string1Anim_302 (rockMonsters_4_fla.string1Anim_302)
package rockMonsters_4_fla {
import flash.display.*;
public dynamic class string1Anim_302 extends MovieClip {
public var string1:MovieClip;
public function string1Anim_302(){
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
gotoAndStop("rest");
}
}
}//package rockMonsters_4_fla
Section 10
//string2Anim_301 (rockMonsters_4_fla.string2Anim_301)
package rockMonsters_4_fla {
import flash.display.*;
public dynamic class string2Anim_301 extends MovieClip {
public var string1:MovieClip;
public function string2Anim_301(){
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
gotoAndStop("rest");
}
}
}//package rockMonsters_4_fla
Section 11
//string3Anim_300 (rockMonsters_4_fla.string3Anim_300)
package rockMonsters_4_fla {
import flash.display.*;
public dynamic class string3Anim_300 extends MovieClip {
public var string1:MovieClip;
public function string3Anim_300(){
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
gotoAndStop("rest");
}
}
}//package rockMonsters_4_fla
Section 12
//string4Anim_299 (rockMonsters_4_fla.string4Anim_299)
package rockMonsters_4_fla {
import flash.display.*;
public dynamic class string4Anim_299 extends MovieClip {
public var string1:MovieClip;
public function string4Anim_299(){
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
gotoAndStop("rest");
}
}
}//package rockMonsters_4_fla
Section 13
//stringAnim_298 (rockMonsters_4_fla.stringAnim_298)
package rockMonsters_4_fla {
import flash.display.*;
public dynamic class stringAnim_298 extends MovieClip {
public var string1:MovieClip;
public function stringAnim_298(){
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
gotoAndStop("rest");
}
}
}//package rockMonsters_4_fla
Section 14
//AudienceCheer (AudienceCheer)
package {
import flash.media.*;
public class AudienceCheer extends Sound {
}
}//package
Section 15
//BG1 (BG1)
package {
import flash.display.*;
public class BG1 extends MovieClip {
}
}//package
Section 16
//BG2 (BG2)
package {
import flash.display.*;
public class BG2 extends MovieClip {
}
}//package
Section 17
//BG3 (BG3)
package {
import flash.display.*;
public class BG3 extends MovieClip {
}
}//package
Section 18
//BG4 (BG4)
package {
import flash.display.*;
public class BG4 extends MovieClip {
}
}//package
Section 19
//Bob (Bob)
package {
import flash.events.*;
public class Bob extends Trainer {
public function Bob(){
var _local1:Array;
super();
addFrameScript(0, frame1, 6, frame7, 12, frame13, 20, frame21, 41, frame42, 49, frame50, 56, frame57, 64, frame65);
_local1 = new Array("Drake", "Satomi", "Josh");
setItinerary(_local1);
setMonsterName("Lizardo");
setBGNum(2);
initializeVars();
}
function frame65(){
stop();
}
function frame7(){
stop();
isIntro = false;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
function frame13(){
stop();
}
function frame1(){
}
function frame42(){
stop();
isCheering = false;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
function frame21(){
stop();
isMistake = false;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
function frame57(){
stop();
}
function frame50(){
stop();
}
}
}//package
Section 20
//Broc (Broc)
package {
import flash.events.*;
public class Broc extends Monster {
public function Broc(){
addFrameScript(0, frame1, 29, frame30, 34, frame35, 43, frame44, 56, frame57, 68, frame69, 74, frame75, 80, frame81);
initializeVars();
}
function frame75(){
stop();
}
function frame81(){
stop();
}
function frame35(){
stop();
}
function frame1(){
}
function frame30(){
stop();
isIntro = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame44(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame57(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame69(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
}
}//package
Section 21
//Clops (Clops)
package {
import flash.events.*;
public class Clops extends Monster {
public function Clops(){
addFrameScript(0, frame1, 7, frame8, 13, frame14, 23, frame24, 35, frame36, 43, frame44, 52, frame53, 60, frame61);
initializeVars();
}
function frame14(){
stop();
}
function frame24(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame1(){
}
function frame8(){
stop();
isIntro = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame36(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame44(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame53(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame61(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
}
}//package
Section 22
//Control (Control)
package {
import flash.events.*;
class Control {
public var strum2ButtonVal:Number;
public var string4ButtonVal:Number;
public var string2ButtonVal:Number;
public var string1Button:Boolean;// = false
public var string2Button:Boolean;// = false
public var string3Button:Boolean;// = false
public var string4Button:Boolean;// = false
public var strum1Button:Boolean;// = false
public var strum2Button:Boolean;// = false
public var string5Button:Boolean;// = false
public var strum1ButtonVal:Number;
public var string5ButtonVal:Number;
public var string3ButtonVal:Number;
public var string1ButtonVal:Number;
public var menuButton:Boolean;// = false
public var inputStates:Array;
public var menuButtonVal:Number;
public var inputValues:Array;
function Control(){
string1Button = false;
string2Button = false;
string3Button = false;
string4Button = false;
string5Button = false;
strum1Button = false;
strum2Button = false;
menuButton = false;
super();
string1ButtonVal = 65;
string2ButtonVal = 83;
string3ButtonVal = 68;
string4ButtonVal = 70;
string5ButtonVal = 71;
strum1ButtonVal = 75;
strum2ButtonVal = 76;
menuButtonVal = 27;
inputValues = new Array(string1ButtonVal, string2ButtonVal, string3ButtonVal, string4ButtonVal, string5ButtonVal, strum1ButtonVal, strum2ButtonVal, menuButtonVal);
inputStates = new Array(string1Button, string2Button, string3Button, string4Button, string5Button, strum1Button, strum2Button, menuButton);
}
public function stopListeningForKeys(){
Game.g.gameContainer.removeEventListener(KeyboardEvent.KEY_DOWN, keyIsDown);
Game.g.gameContainer.removeEventListener(KeyboardEvent.KEY_UP, keyIsUp);
}
public function getButtonState(_arg1:String):Boolean{
if (_arg1 == "string1"){
return (inputStates[0]);
};
if (_arg1 == "string2"){
return (inputStates[1]);
};
if (_arg1 == "string3"){
return (inputStates[2]);
};
if (_arg1 == "string4"){
return (inputStates[3]);
};
if (_arg1 == "string5"){
return (inputStates[4]);
};
if (_arg1 == "strum1"){
return (inputStates[5]);
};
if (_arg1 == "strum2"){
return (inputStates[6]);
};
if (_arg1 == "menu"){
return (inputStates[7]);
};
return (false);
}
public function keyIsUp(_arg1:KeyboardEvent):void{
var _local2:*;
_local2 = 0;
while (_local2 < inputValues.length) {
if (_arg1.keyCode == inputValues[_local2]){
inputStates[_local2] = false;
};
_local2++;
};
}
public function setKeyValue(_arg1:String, _arg2:Number):Number{
if (_arg1 == "string1"){
inputValues[0] = _arg2;
return (inputValues[0]);
};
if (_arg1 == "string2"){
inputValues[1] = _arg2;
return (Number(inputValues[1]));
};
if (_arg1 == "string3"){
inputValues[2] = _arg2;
return (Number(inputValues[2]));
};
if (_arg1 == "string4"){
inputValues[3] = _arg2;
return (Number(inputValues[3]));
};
if (_arg1 == "string5"){
inputValues[4] = _arg2;
return (Number(inputValues[4]));
};
if (_arg1 == "strum1"){
inputValues[5] = _arg2;
return (Number(inputValues[5]));
};
if (_arg1 == "strum2"){
inputValues[6] = _arg2;
return (Number(inputValues[6]));
};
if (_arg1 == "menu"){
inputValues[7] = _arg2;
return (Number(inputValues[7]));
};
return (0);
}
public function keyIsDown(_arg1:KeyboardEvent):void{
var _local2:*;
if ((((_arg1.keyCode == 75)) || ((_arg1.keyCode == 76)))){
Game.g.player1.strum();
};
_local2 = 0;
while (_local2 < inputValues.length) {
if (_arg1.keyCode == inputValues[_local2]){
inputStates[_local2] = true;
};
_local2++;
};
}
public function startListeningForKeys(){
Game.g.gameContainer.addEventListener(KeyboardEvent.KEY_DOWN, keyIsDown);
Game.g.gameContainer.addEventListener(KeyboardEvent.KEY_UP, keyIsUp);
}
}
}//package
Section 23
//Drake (Drake)
package {
import flash.events.*;
public class Drake extends Trainer {
public function Drake(){
var _local1:Array;
super();
addFrameScript(0, frame1, 6, frame7, 12, frame13, 20, frame21, 41, frame42, 49, frame50, 56, frame57, 64, frame65);
_local1 = new Array("Satomi", "Josh", "Bob");
setItinerary(_local1);
setMonsterName("Thor");
setBGNum(4);
initializeVars();
}
function frame65(){
stop();
}
function frame7(){
stop();
isIntro = false;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
function frame13(){
stop();
}
function frame1(){
}
function frame42(){
stop();
isCheering = false;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
function frame21(){
stop();
isMistake = false;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
function frame57(){
stop();
}
function frame50(){
stop();
}
}
}//package
Section 24
//FadeClip (FadeClip)
package {
import flash.display.*;
import flash.events.*;
public class FadeClip extends MovieClip {
public function FadeClip(){
addFrameScript(0, frame1, 1, frame2, 22, frame23, 50, frame51);
}
function frame1(){
}
function frame23(){
Game.g.ged.dispatchEvent(new Event(GameEventDispatcher.FADE_OUT_COMPLETE));
stop();
}
function frame2(){
stop();
}
function frame51(){
Game.g.ged.dispatchEvent(new Event(GameEventDispatcher.FADE_IN_COMPLETE));
stop();
}
}
}//package
Section 25
//Game (Game)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
public class Game {
public var NOTE_DROP_TIME_MEDIUM:Number;// = 3
public var strumPoint:Number;
public var player2Container:Sprite;
public var noteDropDistance:Number;
public var selectedSongNum:Number;// = 1
public var selectedTrainer:String;// = "Satomi"
public var NOTE_DROP_TIME_IMPOSSIBLE:Number;// = 1
public var selectedSpeed:String;// = "medium"
public var GUIContainer:Sprite;
var introMusic:IntroMusic;
var audienceCheerChannel:SoundChannel;
var introMusicChannel:SoundChannel;
public var gameContainer:Stage;
public var currentCharacterNum:Number;// = 1
var storyMusic:StoryMusic;
var audienceCheer:AudienceCheer;
public var matchIsStarted:Boolean;// = false
public var NOTE_DROP_TIME_HARD:Number;// = 2
public var gui:GUI;
var storyMusicChannel:SoundChannel;
public var bg:MovieClip;
public var ged:GameEventDispatcher;
public var gameDifficulty:String;
public var selectedDifficulty:String;// = "easy"
public var NOTE_DROP_TIME_EASY:Number;// = 5
public var songManager:SongManager;
public var noteYStartPos:Number;
public var noteManager:NoteManager;
public var noteDropTime:Number;
public var player1:Player;
public var player2:Player;
public var tf:TextField;
public var backgroundContainer:Sprite;
public var player1Container:Sprite;
public var keys:Control;
public static var g:Game;
public function Game(_arg1:Stage){
NOTE_DROP_TIME_EASY = 5;
NOTE_DROP_TIME_MEDIUM = 3;
NOTE_DROP_TIME_HARD = 2;
NOTE_DROP_TIME_IMPOSSIBLE = 1;
matchIsStarted = false;
currentCharacterNum = 1;
selectedTrainer = "Satomi";
selectedDifficulty = "easy";
selectedSpeed = "medium";
selectedSongNum = 1;
storyMusic = new StoryMusic();
introMusic = new IntroMusic();
audienceCheer = new AudienceCheer();
super();
setGameInstance(this);
ged = new GameEventDispatcher();
ged.addEventListener(GameEventDispatcher.LOAD_STAGE, loadStageEvent);
ged.addEventListener(GameEventDispatcher.START_MUSIC, startMusic);
ged.addEventListener(GameEventDispatcher.GO_TO_MENU, goToMenuEvent);
ged.addEventListener(GameEventDispatcher.GO_TO_CREDITS, goToCreditsEvent);
ged.addEventListener(GameEventDispatcher.WON_MATCH, wonMatchEvent);
ged.addEventListener(GameEventDispatcher.LOST_MATCH, lostMatchEvent);
ged.addEventListener(GameEventDispatcher.RESET_MATCH, loadStageEvent);
ged.addEventListener(GameEventDispatcher.START_GAME, startGameEvent);
keys = new Control();
gameContainer = _arg1;
player1Container = new Sprite();
player2Container = new Sprite();
GUIContainer = new Sprite();
backgroundContainer = new Sprite();
gameContainer.addChild(backgroundContainer);
gameContainer.addChild(player1Container);
gameContainer.addChild(player2Container);
gameContainer.addChild(GUIContainer);
currentCharacterNum = 1;
initializePlayers();
noteManager = new NoteManager(this);
gui = new GUI(GUIContainer);
gui.loadTitleScreen();
}
public function raiseDifficulty(){
if (selectedDifficulty == "easy"){
selectedDifficulty = "medium";
} else {
if (selectedDifficulty == "medium"){
selectedDifficulty = "hard";
};
};
}
public function initializePlayers(){
player1 = new Player(this, player1Container, 1);
player2 = new Player(this, player2Container, 2);
player1.setHumanPlayer(true);
player2.setHumanPlayer(false);
}
public function setGameSpeed(_arg1:String){
if (_arg1 == "easy"){
noteDropTime = 5;
noteDropDistance = 280;
noteYStartPos = 5;
} else {
if (_arg1 == "medium"){
noteDropTime = 3;
noteDropDistance = 280;
noteYStartPos = 5;
} else {
if (_arg1 == "hard"){
noteDropTime = 2;
noteDropDistance = 280;
noteYStartPos = 5;
} else {
if (_arg1 == "impossible"){
noteDropTime = 1;
noteDropDistance = 280;
noteYStartPos = 5;
};
};
};
};
}
public function startGameEvent(_arg1:Event){
Game.g.stopStoryMusic();
gui.loadGameGUI();
gui.fadeIn();
setGameSpeed(selectedSpeed);
player1.loadPlayer();
player2.loadPlayer();
loadBackground(player2.trainer.bgNum);
songManager = null;
songManager = new SongManager(this);
songManager.loadSong(selectedSongNum);
startAudienceCheer();
}
public function wonMatchEvent(_arg1:Event){
currentCharacterNum++;
raiseDifficulty();
resetContainers();
ged.dispatchEvent(new Event(GameEventDispatcher.LOAD_STAGE));
stopAudienceCheer();
}
public function clearFadeEventListeners(){
}
function startIntroMusic(){
introMusicChannel = introMusic.play(0, 999);
}
public function lostMatchEvent(_arg1:Event){
currentCharacterNum = 1;
selectedDifficulty = "easy";
selectedSpeed = "medium";
resetContainers();
ged.dispatchEvent(new Event(GameEventDispatcher.GO_TO_MENU));
stopAudienceCheer();
}
public function goToMenuEvent(_arg1:Event){
gui.loadTitleScreen();
gui.goToMainMenu();
}
function stopAudienceCheer(){
audienceCheerChannel.stop();
}
public function loadStageEvent(_arg1:Event){
if (currentCharacterNum < 4){
resetContainers();
initializePlayers();
player2.setAIDifficulty(selectedDifficulty);
player1.setTrainer(selectedTrainer);
player2.setTrainer(player1.trainer.itinerary[(currentCharacterNum - 1)]);
};
startStoryMusic();
gui.loadStory();
}
function stopIntroMusic(){
introMusicChannel.stop();
}
public function resetContainers(){
while (player1Container.numChildren > 0) {
player1Container.removeChildAt(0);
};
while (player2Container.numChildren > 0) {
player2Container.removeChildAt(0);
};
while (backgroundContainer.numChildren > 0) {
backgroundContainer.removeChildAt(0);
};
while (GUIContainer.numChildren > 0) {
GUIContainer.removeChildAt(0);
};
}
public function songSampler(_arg1:Event){
songManager.listenForSongEvents();
}
public function loadBackground(_arg1:Number){
if (_arg1 == 1){
bg = new BG1();
} else {
if (_arg1 == 2){
bg = new BG2();
} else {
if (_arg1 == 3){
bg = new BG3();
} else {
if (_arg1 == 4){
bg = new BG4();
};
};
};
};
backgroundContainer.addChild(bg);
}
function stopStoryMusic(){
storyMusicChannel.stop();
}
public function startMusic(_arg1:Event){
if (!matchIsStarted){
matchIsStarted = true;
songManager.playSong();
gameContainer.addEventListener(Event.ENTER_FRAME, songSampler);
gameContainer.addEventListener(Event.ENTER_FRAME, playerActions);
songManager.soundChannel.addEventListener(Event.SOUND_COMPLETE, stopMatch);
keys.startListeningForKeys();
gameContainer.focus = gameContainer;
};
}
public function goToCreditsEvent(_arg1:Event){
Game.g.stopStoryMusic();
Game.g.startIntroMusic();
currentCharacterNum = 1;
selectedDifficulty = "easy";
selectedSpeed = "medium";
resetContainers();
gui.loadTitleScreen();
gui.goToCredits();
}
public function stopMatch(_arg1:Event){
gameContainer.removeEventListener(Event.ENTER_FRAME, songSampler);
gameContainer.removeEventListener(Event.ENTER_FRAME, playerActions);
songManager.soundChannel.removeEventListener(Event.SOUND_COMPLETE, stopMatch);
songManager = null;
keys.stopListeningForKeys();
if (player1.score > player2.score){
player1.victorious();
player2.defeated();
} else {
player1.defeated();
player2.victorious();
};
gui.loadResultsWindow();
matchIsStarted = false;
}
function startStoryMusic(){
storyMusicChannel = storyMusic.play(0, 999);
}
public function pauseGameEvent(_arg1:Event){
}
public function playerActions(_arg1:Event){
player1.actions();
player2.actions();
}
function startAudienceCheer(){
audienceCheerChannel = null;
audienceCheerChannel = audienceCheer.play(0, 999);
}
public static function setGameInstance(_arg1:Game){
g = _arg1;
}
}
}//package
Section 26
//GameEventDispatcher (GameEventDispatcher)
package {
import flash.events.*;
public class GameEventDispatcher extends EventDispatcher {
public static var GOTO_INSTRUCTIONS:String = "gotoInstructions";
public static var LOAD_STAGE:String = "nextStage";
public static var START_MUSIC:String = "startMusic";
public static var LOAD_NEW_GAME:String = "loadNewGame";
public static var GO_TO_MENU:String = "goToMenu";
public static var FADE_OUT_COMPLETE:String = "fadeOutComplete";
public static var START_GAME:String = "startGame";
public static var RESET_MATCH:String = "resetMatch";
public static var PAUSE:String = "pause";
public static var FADE_IN_COMPLETE:String = "fadeInComplete";
public static var LOST_MATCH:String = "lostMatch";
public static var WON_MATCH:String = "wonMatch";
public static var GOTO_CREDITS:String = "gotoCredits";
public static var CHOOSE_TRAINER:String = "chooseTrainer";
public static var GO_TO_CREDITS:String = "gotoCredits";
}
}//package
Section 27
//GUI (GUI)
package {
import flash.display.*;
public class GUI {
private var storyWindow:StoryWindow;
private var guiContainer:Sprite;
private var MARKER_MIN_X:Number;// = -176
private var DISPLAY_RESULTS_Y:Number;// = 44
private var resultsWindow:ResultsWindow;
private var scoreMeter:ScoreMeter;
private var DISPLAY_RESULTS_X:Number;// = 95
private var SCORE_METER_LENGTH:Number;// = 352
public var titleScreen:TitleScreen;
private var fadeClip:MovieClip;
private var STORY_WINDOW_X:Number;// = 27
private var STORY_WINDOW_Y:Number;// = 16
private var SCORE_METER_X:Number;// = 350
private var SCORE_METER_Y:Number;// = 30
public function GUI(_arg1:Sprite){
SCORE_METER_X = 350;
SCORE_METER_Y = 30;
MARKER_MIN_X = -176;
SCORE_METER_LENGTH = 352;
DISPLAY_RESULTS_X = 95;
DISPLAY_RESULTS_Y = 44;
STORY_WINDOW_X = 27;
STORY_WINDOW_Y = 16;
super();
this.guiContainer = _arg1;
fadeClip = new FadeClip();
}
public function updateScoreMeter(){
var _local1:*;
scoreMeter.player1Score.text = String((Game.g.player1.score - 100));
scoreMeter.player2Score.text = String((Game.g.player2.score - 100));
scoreMeter.player1Streak.text = String(Game.g.player1.streak);
scoreMeter.player2Streak.text = String(Game.g.player2.streak);
_local1 = (Game.g.player1.score + Game.g.player2.score);
scoreMeter.marker.x = (MARKER_MIN_X + (SCORE_METER_LENGTH * (Game.g.player1.score / _local1)));
}
public function unloadResultsWindow(){
guiContainer.removeChild(resultsWindow);
}
public function fadeIn(){
fadeClip.gotoAndPlay("fadeIn");
}
public function goToMainMenu(){
titleScreen.gotoAndPlay("main");
}
public function loadScoreMeter(){
scoreMeter = new ScoreMeter();
scoreMeter.x = SCORE_METER_X;
scoreMeter.y = SCORE_METER_Y;
guiContainer.addChild(scoreMeter);
guiContainer.swapChildren(scoreMeter, fadeClip);
updateScoreMeter();
}
public function loadTitleScreen(){
titleScreen = new TitleScreen();
guiContainer.addChild(titleScreen);
guiContainer.addChild(fadeClip);
}
public function loadResultsWindow(){
resultsWindow = new ResultsWindow(Game.g.player1);
resultsWindow.x = DISPLAY_RESULTS_X;
resultsWindow.y = DISPLAY_RESULTS_Y;
guiContainer.addChild(resultsWindow);
guiContainer.swapChildren(resultsWindow, fadeClip);
}
public function loadGameGUI(){
guiContainer.addChild(fadeClip);
loadScoreMeter();
}
public function unloadTitleScreen(){
guiContainer.removeChild(titleScreen);
}
public function goToCredits(){
titleScreen.gotoAndStop("credits");
}
public function fadeOut(){
fadeClip.gotoAndPlay("fadeOut");
}
public function unloadStory(){
guiContainer.removeChild(storyWindow);
}
public function unloadScoreMeter(){
guiContainer.removeChild(scoreMeter);
}
public function loadStory(){
storyWindow = new StoryWindow(Game.g.currentCharacterNum);
storyWindow.x = STORY_WINDOW_X;
storyWindow.y = STORY_WINDOW_Y;
guiContainer.addChild(storyWindow);
}
}
}//package
Section 28
//Guitar (Guitar)
package {
import flash.display.*;
import flash.geom.*;
public class Guitar extends MovieClip {
public var guitarNeck:MovieClip;
public var fretBoard:MovieClip;
public var string3Sparks:MovieClip;
public var string4:MovieClip;
public var string5:MovieClip;
public var FRET_ART_TILE_HEIGHT:Number;// = 0
public var string2:MovieClip;
public var string1:MovieClip;
public var string4Sparks:MovieClip;
public var string3:MovieClip;
public var string5Sparks:MovieClip;
public var string1Sparks:MovieClip;
public var strumPoint:MovieClip;
public var noteContainer:Sprite;
public var fretArtNum:Number;// = 0
public var string2Sparks:MovieClip;
public var fretRect:Rectangle;
public function Guitar(){
FRET_ART_TILE_HEIGHT = 0;
fretArtNum = 0;
super();
addFrameScript(14, frame15);
noteContainer = new Sprite();
this.addChild(noteContainer);
createFretRect();
Game.g.strumPoint = fretRect.y;
}
public function setGuitarNeck(_arg1:MovieClip){
this.guitarNeck = _arg1;
}
public function createFretRect(){
fretRect = new Rectangle(strumPoint.x, strumPoint.y, strumPoint.width, strumPoint.height);
}
public function setFretArt(_arg1:Number){
this.fretArtNum = _arg1;
}
function frame15(){
stop();
}
public function playString(_arg1:Number){
if (_arg1 == 1){
string1.gotoAndPlay("strum");
} else {
if (_arg1 == 2){
string2.gotoAndPlay("strum");
} else {
if (_arg1 == 3){
string3.gotoAndPlay("strum");
} else {
if (_arg1 == 4){
string4.gotoAndPlay("strum");
} else {
if (_arg1 == 5){
string5.gotoAndPlay("strum");
};
};
};
};
};
}
}
}//package
Section 29
//GuitarIntro (GuitarIntro)
package {
import flash.display.*;
public class GuitarIntro extends MovieClip {
public var fretBoard:MovieClip;
public var string4:MovieClip;
public var string5:MovieClip;
public var string2:MovieClip;
public var string1:MovieClip;
public var string3:MovieClip;
public var strumPoint:MovieClip;
public var player:Player;
public function GuitarIntro(_arg1:Player){
addFrameScript(39, frame40);
this.player = _arg1;
}
function frame40(){
stop();
player.loadGuitar();
}
}
}//package
Section 30
//IntroMusic (IntroMusic)
package {
import flash.media.*;
public class IntroMusic extends Sound {
}
}//package
Section 31
//Josh (Josh)
package {
import flash.events.*;
public class Josh extends Trainer {
public function Josh(){
var _local1:Array;
super();
addFrameScript(0, frame1, 6, frame7, 12, frame13, 20, frame21, 41, frame42, 49, frame50, 56, frame57, 64, frame65);
_local1 = new Array("Bob", "Drake", "Satomi");
setItinerary(_local1);
setMonsterName("Clops");
setBGNum(2);
initializeVars();
}
function frame65(){
stop();
}
function frame7(){
stop();
isIntro = false;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
function frame13(){
stop();
}
function frame1(){
}
function frame42(){
stop();
isCheering = false;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
function frame21(){
stop();
isMistake = false;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
function frame57(){
stop();
}
function frame50(){
stop();
}
}
}//package
Section 32
//Lizardo (Lizardo)
package {
import flash.events.*;
public class Lizardo extends Monster {
public function Lizardo(){
addFrameScript(0, frame1, 4, frame5, 10, frame11, 19, frame20, 28, frame29, 39, frame40, 46, frame47, 53, frame54);
initializeVars();
}
function frame5(){
stop();
isIntro = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame29(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame1(){
}
function frame20(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame11(){
stop();
}
function frame40(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame47(){
stop();
}
function frame54(){
stop();
}
}
}//package
Section 33
//Monster (Monster)
package {
import flash.display.*;
import flash.events.*;
public class Monster extends MovieClip {
public var STRUM_TYPES:Number;// = 3
public var isIdle:Boolean;
public var strumNumber:Number;
public var isStrumming:Boolean;
public var isDefeated:Boolean;
public var isIntro:Boolean;
public var monsterEventDispatcher:MonsterEventDispatcher;
public var isVictorious:Boolean;
public function Monster(){
STRUM_TYPES = 3;
super();
}
public function initializeVars(){
isStrumming = false;
isIdle = true;
isDefeated = false;
isVictorious = false;
isIntro = true;
strumNumber = 0;
monsterEventDispatcher = new MonsterEventDispatcher();
createEventListeners();
}
public function victorious(){
isVictorious = true;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
public function defeated(){
isDefeated = true;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
public function strum(){
isStrumming = true;
newStrum();
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
public function playAnimation(_arg1:String){
if (_arg1 == "strum"){
gotoAndPlay(("strum" + strumNumber));
} else {
if (_arg1 == "idle"){
gotoAndPlay("idle");
} else {
if (_arg1 == "defeat"){
gotoAndPlay("defeat");
} else {
if (_arg1 == "victorious"){
gotoAndPlay("victorious");
} else {
if (_arg1 == "intro"){
gotoAndPlay("intro");
} else {
if (_arg1 == "idle"){
gotoAndPlay("idle");
};
};
};
};
};
};
}
public function newStrum(){
strumNumber = Math.floor(((Math.random() * STRUM_TYPES) + 1));
}
public function createEventListeners(){
monsterEventDispatcher.addEventListener(MonsterEventDispatcher.NEW_ANIMATION, newAnimation);
}
public function newAnimation(_arg1:Event){
if (isVictorious){
playAnimation("victorious");
} else {
if (isDefeated){
playAnimation("defeat");
} else {
if (isIntro){
playAnimation("intro");
} else {
if (isStrumming){
playAnimation("strum");
} else {
if (isIdle){
playAnimation("idle");
};
};
};
};
};
}
}
}//package
Section 34
//MonsterEventDispatcher (MonsterEventDispatcher)
package {
import flash.events.*;
public class MonsterEventDispatcher extends EventDispatcher {
public static var NEW_ANIMATION:String = "newAnim";
}
}//package
Section 35
//Note (Note)
package {
import flash.display.*;
public class Note extends MovieClip {
public var startTime:Number;
public var stringNum:Number;
public var isActive:Boolean;// = false
public var sustainDuration:Number;
public function Note(){
isActive = false;
super();
}
public function setStartTime(_arg1:Number){
this.startTime = _arg1;
}
public function playStrum(){
gotoAndStop("on");
isActive = true;
}
public function setNoteType(_arg1:Number){
this.stringNum = _arg1;
}
}
}//package
Section 36
//NoteManager (NoteManager)
package {
public class NoteManager {
public var game:Game;
public function NoteManager(_arg1:Game){
this.game = _arg1;
}
public function addNote(_arg1:Note){
game.player1.addNote(_arg1);
game.player2.addNote(_arg1);
}
}
}//package
Section 37
//NotePic1 (NotePic1)
package {
import flash.display.*;
public class NotePic1 extends Note {
public var note:MovieClip;
public function NotePic1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 38
//NotePic2 (NotePic2)
package {
import flash.display.*;
public class NotePic2 extends Note {
public var note:MovieClip;
public function NotePic2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 39
//NotePic3 (NotePic3)
package {
import flash.display.*;
public class NotePic3 extends Note {
public var note:MovieClip;
public function NotePic3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 40
//NotePic4 (NotePic4)
package {
import flash.display.*;
public class NotePic4 extends Note {
public var note:MovieClip;
public function NotePic4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 41
//NotePic5 (NotePic5)
package {
import flash.display.*;
public class NotePic5 extends Note {
public var note:MovieClip;
public function NotePic5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 42
//NoteStrum (NoteStrum)
package {
public class NoteStrum extends Note {
public function NoteStrum(_arg1:Number, _arg2:Number){
setNoteType(_arg1);
setStartTime(_arg2);
}
}
}//package
Section 43
//NoteStrumEvent (NoteStrumEvent)
package {
public class NoteStrumEvent extends SongEvent {
public var stringNum:Number;
public function NoteStrumEvent(_arg1:Number, _arg2:Number){
setEventTime(_arg1);
this.stringNum = _arg2;
}
override public function actions(_arg1:NoteManager){
_arg1.addNote(new NoteStrum(stringNum, eventTime));
}
}
}//package
Section 44
//NoteSustained (NoteSustained)
package {
public class NoteSustained extends Note {
public function NoteSustained(_arg1:Number, _arg2:Number, _arg3:Number){
setNoteType(_arg1);
this.sustainDuration = _arg2;
setStartTime(_arg3);
}
}
}//package
Section 45
//NoteSustainedEvent (NoteSustainedEvent)
package {
public class NoteSustainedEvent extends SongEvent {
public var stringNum:Number;
public var sustainDuration:Number;
public function NoteSustainedEvent(_arg1:Number, _arg2:Number, _arg3:Number){
setEventTime(_arg1);
this.stringNum = _arg2;
this.sustainDuration = _arg3;
}
override public function actions(_arg1:NoteManager){
_arg1.addNote(new NoteSustained(stringNum, sustainDuration, eventTime));
}
}
}//package
Section 46
//NoteSustainedPic (NoteSustainedPic)
package {
import flash.display.*;
import flash.events.*;
public class NoteSustainedPic extends Note {
public var isStretching:Boolean;// = false
public var tailClip:MovieClip;
public var player:Player;
public function NoteSustainedPic(){
isStretching = false;
super();
}
public function stretchTail(_arg1:Number){
this.sustainDuration = _arg1;
tailClip.height = ((Game.g.noteDropDistance / Game.g.noteDropTime) * (_arg1 / 1000));
}
public function setPlayer(_arg1:Player){
this.player = _arg1;
}
private function checkForKeyUp(_arg1:Event){
if (stringNum == 1){
if (!Game.g.keys.getButtonState("string1")){
player.guitar.string1Sparks.gotoAndStop("off");
tailClip.gotoAndStop("off");
Game.g.gameContainer.removeEventListener(Event.ENTER_FRAME, holdDurationCheck);
Game.g.gameContainer.removeEventListener(KeyboardEvent.KEY_UP, checkForKeyUp);
};
} else {
if (stringNum == 2){
if (!Game.g.keys.getButtonState("string2")){
player.guitar.string2Sparks.gotoAndStop("off");
tailClip.gotoAndStop("off");
Game.g.gameContainer.removeEventListener(Event.ENTER_FRAME, holdDurationCheck);
Game.g.gameContainer.removeEventListener(KeyboardEvent.KEY_UP, checkForKeyUp);
};
} else {
if (stringNum == 3){
if (!Game.g.keys.getButtonState("string3")){
player.guitar.string3Sparks.gotoAndStop("off");
tailClip.gotoAndStop("off");
Game.g.gameContainer.removeEventListener(Event.ENTER_FRAME, holdDurationCheck);
Game.g.gameContainer.removeEventListener(KeyboardEvent.KEY_UP, checkForKeyUp);
};
} else {
if (stringNum == 4){
if (!Game.g.keys.getButtonState("string4")){
player.guitar.string4Sparks.gotoAndStop("off");
tailClip.gotoAndStop("off");
Game.g.gameContainer.removeEventListener(Event.ENTER_FRAME, holdDurationCheck);
Game.g.gameContainer.removeEventListener(KeyboardEvent.KEY_UP, checkForKeyUp);
};
} else {
if (stringNum == 5){
if (!Game.g.keys.getButtonState("string5")){
player.guitar.string5Sparks.gotoAndStop("off");
tailClip.gotoAndStop("off");
Game.g.gameContainer.removeEventListener(Event.ENTER_FRAME, holdDurationCheck);
Game.g.gameContainer.removeEventListener(KeyboardEvent.KEY_UP, checkForKeyUp);
};
};
};
};
};
};
}
private function holdDurationCheck(_arg1:Event){
if (Game.g.songManager.getPosition() >= ((this.startTime + this.sustainDuration) + (Game.g.noteDropTime * 1000))){
if (stringNum == 1){
player.guitar.string1Sparks.gotoAndStop("off");
} else {
if (stringNum == 2){
player.guitar.string2Sparks.gotoAndStop("off");
} else {
if (stringNum == 3){
player.guitar.string3Sparks.gotoAndStop("off");
} else {
if (stringNum == 4){
player.guitar.string4Sparks.gotoAndStop("off");
} else {
if (stringNum == 5){
player.guitar.string5Sparks.gotoAndStop("off");
};
};
};
};
};
tailClip.gotoAndStop("off");
Game.g.gameContainer.removeEventListener(Event.ENTER_FRAME, holdDurationCheck);
Game.g.gameContainer.removeEventListener(KeyboardEvent.KEY_UP, checkForKeyUp);
} else {
player.increaseScore("hold");
};
}
private function turnOnSparks(){
if (stringNum == 1){
player.guitar.string1Sparks.gotoAndStop("on");
} else {
if (stringNum == 2){
player.guitar.string2Sparks.gotoAndStop("on");
} else {
if (stringNum == 3){
player.guitar.string3Sparks.gotoAndStop("on");
} else {
if (stringNum == 4){
player.guitar.string4Sparks.gotoAndStop("on");
} else {
if (stringNum == 5){
player.guitar.string5Sparks.gotoAndStop("on");
};
};
};
};
};
}
override public function playStrum(){
gotoAndStop("on");
isActive = true;
turnOnSparks();
Game.g.gameContainer.addEventListener(KeyboardEvent.KEY_UP, checkForKeyUp);
Game.g.gameContainer.addEventListener(Event.ENTER_FRAME, holdDurationCheck);
}
public function setTail(_arg1:MovieClip){
this.tailClip = _arg1;
}
}
}//package
Section 47
//NoteSustainedPic1 (NoteSustainedPic1)
package {
import flash.display.*;
public class NoteSustainedPic1 extends NoteSustainedPic {
public var tail:MovieClip;
public var note:MovieClip;
public function NoteSustainedPic1(){
addFrameScript(0, frame1);
}
public function NoteSustainedPic2(){
}
function frame1(){
stop();
}
}
}//package
Section 48
//NoteSustainedPic2 (NoteSustainedPic2)
package {
import flash.display.*;
public class NoteSustainedPic2 extends NoteSustainedPic {
public var tail:MovieClip;
public var note:MovieClip;
public function NoteSustainedPic2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 49
//NoteSustainedPic3 (NoteSustainedPic3)
package {
import flash.display.*;
public class NoteSustainedPic3 extends NoteSustainedPic {
public var tail:MovieClip;
public var note:MovieClip;
public function NoteSustainedPic3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 50
//NoteSustainedPic4 (NoteSustainedPic4)
package {
import flash.display.*;
public class NoteSustainedPic4 extends NoteSustainedPic {
public var tail:MovieClip;
public var note:MovieClip;
public function NoteSustainedPic4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 51
//NoteSustainedPic5 (NoteSustainedPic5)
package {
import flash.display.*;
public class NoteSustainedPic5 extends NoteSustainedPic {
public var tail:MovieClip;
public var note:MovieClip;
public function NoteSustainedPic5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 52
//Player (Player)
package {
import flash.display.*;
import flash.events.*;
public class Player {
public var guitarIntro:GuitarIntro;
public var PLAYER_2_TRAINER_X:Number;// = 468
public var PLAYER_2_TRAINER_Y:Number;// = 270
public var PLAYER_1_MONSTER_X:Number;// = 276
public var PLAYER_1_MONSTER_Y:Number;// = 288
public var hitRatio:Number;
public var gui:GUI;
public var highestStreak:Number;
public var PLAYER_1_TRAINER_Y:Number;// = 270
public var PLAYER_1_TRAINER_X:Number;// = 230
public var notePics:Array;
public var PLAYER_1_GUITAR_X:Number;// = 80
public var PLAYER_1_GUITAR_Y:Number;// = -14
public var PLAYER_2_GUITAR_X:Number;// = 619
public var PLAYER_2_GUITAR_Y:Number;// = -14
public var player_monster_x:Number;
public var player_monster_y:Number;
public var guitarIsLoaded:Boolean;
public var humanPlayer:Boolean;
public var streak:Number;
public var player_direction_val:Number;
public var guitar:Guitar;
public var holdRatio:Number;
public var player_trainer_x:Number;
public var player_trainer_y:Number;
public var score:Number;
private var playerContainer:Sprite;
public var player_guitar_x:Number;
public var player_guitar_y:Number;
public var trainer:Trainer;
public var isVictorious:Boolean;
public var monster:Monster;
public var missedNotes:Number;
public var PLAYER_2_MONSTER_X:Number;// = 422
public var PLAYER_2_MONSTER_Y:Number;// = 288
public var playerNum:Number;
public var hitNotes:Number;
private var game:Game;
public function Player(_arg1:Game, _arg2:Sprite, _arg3:Number){
PLAYER_1_GUITAR_X = 80;
PLAYER_1_GUITAR_Y = -14;
PLAYER_1_TRAINER_X = 230;
PLAYER_1_TRAINER_Y = 270;
PLAYER_1_MONSTER_X = 276;
PLAYER_1_MONSTER_Y = 288;
PLAYER_2_GUITAR_X = 619;
PLAYER_2_GUITAR_Y = -14;
PLAYER_2_TRAINER_X = 468;
PLAYER_2_TRAINER_Y = 270;
PLAYER_2_MONSTER_X = 422;
PLAYER_2_MONSTER_Y = 288;
super();
this.game = _arg1;
this.playerContainer = _arg2;
setPlayerValues(_arg3);
notePics = new Array();
score = 100;
streak = 0;
highestStreak = 0;
hitNotes = 0;
missedNotes = 0;
guitarIsLoaded = false;
isVictorious = false;
}
public function victorious(){
trainer.victorious();
monster.victorious();
isVictorious = true;
}
public function loadGuitar(){
playerContainer.removeChild(guitarIntro);
guitar = new Guitar();
playerContainer.addChild(guitar);
guitar.x = player_guitar_x;
guitar.y = player_guitar_y;
guitarIsLoaded = true;
Game.g.ged.dispatchEvent(new Event(GameEventDispatcher.START_MUSIC));
}
public function defeated(){
trainer.defeated();
monster.defeated();
}
public function loadMonster(){
playerContainer.addChild(monster);
}
public function setMonster(){
if (trainer.monsterName == "Broc"){
monster = new Broc();
} else {
if (trainer.monsterName == "Lizardo"){
monster = new Lizardo();
} else {
if (trainer.monsterName == "Clops"){
monster = new Clops();
} else {
if (trainer.monsterName == "Thor"){
monster = new Thor();
};
};
};
};
monster.x = player_monster_x;
monster.y = player_monster_y;
monster.scaleX = player_direction_val;
}
public function attemptToStrumAI():Boolean{
if (Math.random() < hitRatio){
return (true);
};
return (false);
}
public function addNote(_arg1:Note){
var _local2:NotePic1;
var _local3:NotePic2;
var _local4:NotePic3;
var _local5:NotePic4;
var _local6:NotePic5;
var _local7:NoteSustainedPic1;
var _local8:NoteSustainedPic2;
var _local9:NoteSustainedPic3;
var _local10:NoteSustainedPic4;
var _local11:NoteSustainedPic5;
if ((_arg1 is NoteStrum)){
if (_arg1.stringNum == 1){
_local2 = new NotePic1();
_local2.setStartTime(_arg1.startTime);
_local2.x = guitar.string1.x;
_local2.y = Game.g.noteYStartPos;
_local2.setNoteType(_arg1.stringNum);
notePics.push(_local2);
guitar.noteContainer.addChild(_local2);
} else {
if (_arg1.stringNum == 2){
_local3 = new NotePic2();
_local3.setStartTime(_arg1.startTime);
_local3.x = guitar.string2.x;
_local3.y = Game.g.noteYStartPos;
_local3.setNoteType(_arg1.stringNum);
notePics.push(_local3);
guitar.noteContainer.addChild(_local3);
} else {
if (_arg1.stringNum == 3){
_local4 = new NotePic3();
_local4.setStartTime(_arg1.startTime);
_local4.x = guitar.string3.x;
_local4.y = Game.g.noteYStartPos;
_local4.setNoteType(_arg1.stringNum);
notePics.push(_local4);
guitar.noteContainer.addChild(_local4);
} else {
if (_arg1.stringNum == 4){
_local5 = new NotePic4();
_local5.setStartTime(_arg1.startTime);
_local5.x = guitar.string4.x;
_local5.y = Game.g.noteYStartPos;
_local5.setNoteType(_arg1.stringNum);
notePics.push(_local5);
guitar.noteContainer.addChild(_local5);
} else {
if (_arg1.stringNum == 5){
_local6 = new NotePic5();
_local6.setStartTime(_arg1.startTime);
_local6.x = guitar.string5.x;
_local6.y = Game.g.noteYStartPos;
_local6.setNoteType(_arg1.stringNum);
notePics.push(_local6);
guitar.noteContainer.addChild(_local6);
};
};
};
};
};
} else {
if ((_arg1 is NoteSustained)){
if (_arg1.stringNum == 1){
_local7 = new NoteSustainedPic1();
_local7.setStartTime(_arg1.startTime);
_local7.x = guitar.string1.x;
_local7.y = Game.g.noteYStartPos;
_local7.setTail(_local7.tail);
_local7.stretchTail(_arg1.sustainDuration);
_local7.setNoteType(_arg1.stringNum);
_local7.setPlayer(this);
notePics.push(_local7);
guitar.noteContainer.addChild(_local7);
} else {
if (_arg1.stringNum == 2){
_local8 = new NoteSustainedPic2();
_local8.setStartTime(_arg1.startTime);
_local8.x = guitar.string2.x;
_local8.y = Game.g.noteYStartPos;
_local8.setTail(_local8.tail);
_local8.stretchTail(_arg1.sustainDuration);
_local8.setNoteType(_arg1.stringNum);
_local8.setPlayer(this);
notePics.push(_local8);
guitar.noteContainer.addChild(_local8);
} else {
if (_arg1.stringNum == 3){
_local9 = new NoteSustainedPic3();
_local9.setStartTime(_arg1.startTime);
_local9.x = guitar.string3.x;
_local9.y = Game.g.noteYStartPos;
_local9.setTail(_local9.tail);
_local9.stretchTail(_arg1.sustainDuration);
_local9.setNoteType(_arg1.stringNum);
_local9.setPlayer(this);
notePics.push(_local9);
guitar.noteContainer.addChild(_local9);
} else {
if (_arg1.stringNum == 4){
_local10 = new NoteSustainedPic4();
_local10.setStartTime(_arg1.startTime);
_local10.x = guitar.string4.x;
_local10.y = Game.g.noteYStartPos;
_local10.setTail(_local10.tail);
_local10.stretchTail(_arg1.sustainDuration);
_local10.setNoteType(_arg1.stringNum);
_local10.setPlayer(this);
notePics.push(_local10);
guitar.noteContainer.addChild(_local10);
} else {
if (_arg1.stringNum == 5){
_local11 = new NoteSustainedPic5();
_local11.setStartTime(_arg1.startTime);
_local11.x = guitar.string5.x;
_local11.y = Game.g.noteYStartPos;
_local11.setTail(_local11.tail);
_local11.stretchTail(_arg1.sustainDuration);
_local11.setNoteType(_arg1.stringNum);
_local11.setPlayer(this);
notePics.push(_local11);
guitar.noteContainer.addChild(_local11);
};
};
};
};
};
};
};
}
public function loadGuitarIntro(){
guitarIntro = new GuitarIntro(this);
guitarIntro.x = player_guitar_x;
guitarIntro.y = player_guitar_y;
playerContainer.addChild(guitarIntro);
}
public function setAIDifficulty(_arg1:String){
if (_arg1 == "easy"){
hitRatio = 0.06;
holdRatio = 0.95;
} else {
if (_arg1 == "medium"){
hitRatio = 0.1;
holdRatio = 0.85;
} else {
if (_arg1 == "hard"){
hitRatio = 0.2;
holdRatio = 0.9;
};
};
};
}
public function loadPlayer(){
loadTrainer();
loadMonster();
loadGuitarIntro();
}
public function unloadGuitar(){
playerContainer.removeChild(playerContainer.getChildByName("guitar"));
}
public function increaseScore(_arg1:String){
if (_arg1 == "hold"){
score++;
} else {
if (_arg1 == "strum"){
streak++;
if (streak > highestStreak){
highestStreak = streak;
};
score = (score + (10 + Math.floor((streak / 10))));
};
};
Game.g.gui.updateScoreMeter();
}
public function moveNotes(){
var _local1:Number;
var _local2:Number;
if (notePics.length > 0){
_local1 = 0;
while (_local1 < notePics.length) {
if ((notePics[_local1].y - notePics[_local1].height) > 330){
if (!notePics[_local1].isActive){
streak = 0;
missedNotes++;
trainer.mistake();
Game.g.gui.updateScoreMeter();
};
guitar.noteContainer.removeChild(notePics[_local1]);
notePics.splice(_local1, 1);
} else {
_local2 = Math.floor((((((game.songManager.getPosition() - notePics[_local1].startTime) / 1000) / Game.g.noteDropTime) * Game.g.noteDropDistance) - Game.g.noteYStartPos));
notePics[_local1].y = _local2;
};
_local1++;
};
};
}
public function setGUI(_arg1:GUI){
this.gui = _arg1;
}
public function strum(){
var _local1:int;
_local1 = 0;
while (_local1 < notePics.length) {
if (notePics[_local1].note.hitTestObject(guitar.strumPoint)){
if (!notePics[_local1].isActive){
if ((((notePics[_local1].stringNum == 1)) && (Game.g.keys.getButtonState("string1")))){
notePics[_local1].playStrum();
guitar.string1.gotoAndPlay("strum");
increaseScore("strum");
} else {
if ((((notePics[_local1].stringNum == 2)) && (Game.g.keys.getButtonState("string2")))){
notePics[_local1].playStrum();
guitar.string2.gotoAndPlay("strum");
increaseScore("strum");
} else {
if ((((notePics[_local1].stringNum == 3)) && (Game.g.keys.getButtonState("string3")))){
notePics[_local1].playStrum();
guitar.string3.gotoAndPlay("strum");
increaseScore("strum");
} else {
if ((((notePics[_local1].stringNum == 4)) && (Game.g.keys.getButtonState("string4")))){
notePics[_local1].playStrum();
guitar.string4.gotoAndPlay("strum");
increaseScore("strum");
} else {
if ((((notePics[_local1].stringNum == 5)) && (Game.g.keys.getButtonState("string5")))){
notePics[_local1].playStrum();
guitar.string5.gotoAndPlay("strum");
increaseScore("strum");
};
};
};
};
};
monster.strum();
hitNotes++;
if (streak == trainer.ROCK_OUT_STREAK_NUM){
trainer.rockOut();
} else {
if ((streak % trainer.CHEER_STREAK_NUM) == 0){
trainer.cheer();
};
};
};
};
_local1++;
};
}
public function setHumanPlayer(_arg1:Boolean){
this.humanPlayer = _arg1;
}
public function unloadTrainer(){
playerContainer.removeChild(playerContainer.getChildByName("trainer"));
}
public function unloadPlayer(){
unloadTrainer();
unloadMonster();
unloadGuitar();
}
public function unloadMonster(){
playerContainer.removeChild(playerContainer.getChildByName("monster"));
}
public function setPlayerValues(_arg1:Number){
this.playerNum = _arg1;
if (_arg1 == 1){
player_guitar_x = PLAYER_1_GUITAR_X;
player_guitar_y = PLAYER_1_GUITAR_Y;
player_trainer_x = PLAYER_1_TRAINER_X;
player_trainer_y = PLAYER_1_TRAINER_Y;
player_monster_x = PLAYER_1_MONSTER_X;
player_monster_y = PLAYER_1_MONSTER_Y;
player_direction_val = 1;
} else {
if (_arg1 == 2){
player_guitar_x = PLAYER_2_GUITAR_X;
player_guitar_y = PLAYER_2_GUITAR_Y;
player_trainer_x = PLAYER_2_TRAINER_X;
player_trainer_y = PLAYER_2_TRAINER_Y;
player_monster_x = PLAYER_2_MONSTER_X;
player_monster_y = PLAYER_2_MONSTER_Y;
player_direction_val = -1;
};
};
}
public function loadTrainer(){
playerContainer.addChild(trainer);
}
public function setTrainer(_arg1:String){
if (_arg1 == "Satomi"){
trainer = new Satomi();
} else {
if (_arg1 == "Bob"){
trainer = new Bob();
} else {
if (_arg1 == "Drake"){
trainer = new Drake();
} else {
if (_arg1 == "Josh"){
trainer = new Josh();
};
};
};
};
trainer.x = player_trainer_x;
trainer.y = player_trainer_y;
trainer.scaleX = player_direction_val;
trainer.setPlayer(this);
setMonster();
}
public function actions(){
var _local1:int;
moveNotes();
if (!humanPlayer){
_local1 = 0;
while (_local1 < notePics.length) {
if (!notePics[_local1].isActive){
if (notePics[_local1].y > (Game.g.strumPoint - 30)){
if (notePics[_local1].note.hitTestObject(guitar.strumPoint)){
if (attemptToStrumAI()){
if (notePics[_local1].stringNum == 1){
notePics[_local1].playStrum();
guitar.string1.gotoAndPlay("strum");
increaseScore("strum");
} else {
if (notePics[_local1].stringNum == 2){
notePics[_local1].playStrum();
guitar.string2.gotoAndPlay("strum");
increaseScore("strum");
} else {
if (notePics[_local1].stringNum == 3){
notePics[_local1].playStrum();
guitar.string3.gotoAndPlay("strum");
increaseScore("strum");
} else {
if (notePics[_local1].stringNum == 4){
notePics[_local1].playStrum();
guitar.string4.gotoAndPlay("strum");
increaseScore("strum");
} else {
if (notePics[_local1].stringNum == 5){
notePics[_local1].playStrum();
guitar.string5.gotoAndPlay("strum");
increaseScore("strum");
};
};
};
};
};
monster.strum();
if ((streak % trainer.ROCK_OUT_STREAK_NUM) == 0){
trainer.rockOut();
} else {
if ((streak % trainer.CHEER_STREAK_NUM) == 0){
trainer.cheer();
};
};
};
};
};
};
_local1++;
};
};
}
}
}//package
Section 53
//ResultsWindow (ResultsWindow)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class ResultsWindow extends MovieClip {
public var retryButton:SimpleButton;
public var winText:MovieClip;
public var menuButton:SimpleButton;
public var highestStreak:TextField;
public var score:TextField;
public var continueButton:SimpleButton;
public var grade:MovieClip;
public var totalNotes:Number;
public var player:Player;
public var missedNotes:TextField;
public var hitNotes:TextField;
public function ResultsWindow(_arg1:Player){
addFrameScript(0, frame1, 33, frame34, 43, frame44, 54, frame55, 65, frame66, 76, frame77, 100, frame101, 107, frame108);
this.player = _arg1;
}
function frame77(){
score.text = String(player.score);
}
function frame101(){
stop();
totalNotes = (player.hitNotes + player.missedNotes);
if ((player.hitNotes / totalNotes) >= 0.9){
grade.gotoAndStop("A");
} else {
if ((player.hitNotes / totalNotes) >= 0.8){
grade.gotoAndStop("B");
} else {
if ((player.hitNotes / totalNotes) >= 0.7){
grade.gotoAndStop("C");
} else {
grade.gotoAndStop("F");
};
};
};
if (!player.isVictorious){
gotoAndStop("retry");
};
continueButton.addEventListener(MouseEvent.CLICK, continueEvent);
}
public function continueEvent(_arg1:MouseEvent){
Game.g.ged.dispatchEvent(new Event(GameEventDispatcher.WON_MATCH));
}
function frame1(){
}
function frame34(){
if (!player.isVictorious){
winText.gotoAndStop("lose");
} else {
winText.gotoAndStop("win");
};
}
function frame44(){
highestStreak.text = String(player.highestStreak);
}
public function mainMenuEvent(_arg1:MouseEvent){
Game.g.ged.dispatchEvent(new Event(GameEventDispatcher.LOST_MATCH));
}
function frame55(){
hitNotes.text = String(player.hitNotes);
}
function frame108(){
retryButton.addEventListener(MouseEvent.CLICK, retryEvent);
menuButton.addEventListener(MouseEvent.CLICK, mainMenuEvent);
}
public function retryEvent(_arg1:MouseEvent){
Game.g.ged.dispatchEvent(new Event(GameEventDispatcher.RESET_MATCH));
}
function frame66(){
missedNotes.text = String(player.missedNotes);
}
}
}//package
Section 54
//Satomi (Satomi)
package {
import flash.events.*;
public class Satomi extends Trainer {
public function Satomi(){
var _local1:Array;
super();
addFrameScript(0, frame1, 6, frame7, 12, frame13, 20, frame21, 41, frame42, 49, frame50, 56, frame57, 64, frame65);
_local1 = new Array("Bob", "Josh", "Drake");
setItinerary(_local1);
setMonsterName("Broc");
setBGNum(1);
initializeVars();
}
function frame65(){
stop();
}
function frame7(){
stop();
isIntro = false;
trace(trainerEventDispatcher);
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
function frame13(){
stop();
}
function frame1(){
}
function frame42(){
stop();
isCheering = false;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
function frame21(){
stop();
isMistake = false;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
function frame57(){
stop();
}
function frame50(){
stop();
}
}
}//package
Section 55
//ScoreMeter (ScoreMeter)
package {
import flash.display.*;
import flash.text.*;
public class ScoreMeter extends MovieClip {
public var player1Score:TextField;
public var player1Streak:TextField;
public var player2Streak:TextField;
public var marker:MovieClip;
public var player2Score:TextField;
}
}//package
Section 56
//Song (Song)
package {
import flash.media.*;
public class Song {
public var songAuthor:String;
public var songEventList:Array;
public var songTitle:String;
public var trackName:Sound;
public var songURL:String;
public function Song(){
songEventList = new Array();
super();
}
public function setSongAuthor(_arg1:String){
this.songAuthor = _arg1;
}
public function addSongEvent(_arg1:SongEvent){
songEventList.splice(0, 0, _arg1);
}
public function setSongTitle(_arg1:String){
this.songTitle = _arg1;
}
public function setTrack(_arg1:Number){
if (_arg1 == 1){
trackName = new Track1();
} else {
if (_arg1 == 2){
trackName = new Track2();
} else {
if (_arg1 == 3){
trackName = new Track3();
} else {
if (_arg1 == 4){
trackName = new Track4();
} else {
if (_arg1 == 5){
trackName = new Track5();
} else {
if (_arg1 == 6){
trackName = new Track6();
};
};
};
};
};
};
}
public function nextSongEvent():SongEvent{
return (songEventList[(songEventList.length - 1)]);
}
public function setSongURL(_arg1:String){
this.songURL = _arg1;
}
public function getNextSongEvent():SongEvent{
return (songEventList.pop());
}
}
}//package
Section 57
//Song1 (Song1)
package {
public class Song1 extends Song {
public function Song1(){
buildEventList();
setSongTitle("Duncan Hill Theme");
setSongAuthor("Metaljonus");
setSongURL("http://www.newgrounds.com/audio/view.php?id=1639117&sub=78084");
setTrack(1);
}
public function buildEventList(){
addSongEvent(new NoteStrumEvent(6001, 2));
addSongEvent(new NoteSustainedEvent(6482, 1, 800));
addSongEvent(new NoteSustainedEvent(7442, 3, 800));
addSongEvent(new NoteSustainedEvent(8400, 1, 800));
addSongEvent(new NoteStrumEvent(9363, 2));
addSongEvent(new NoteStrumEvent(9588, 3));
addSongEvent(new NoteStrumEvent(9844, 2));
addSongEvent(new NoteSustainedEvent(10317, 1, 800));
addSongEvent(new NoteSustainedEvent(11276, 3, 800));
addSongEvent(new NoteSustainedEvent(12238, 1, 800));
addSongEvent(new NoteStrumEvent(13196, 2));
addSongEvent(new NoteStrumEvent(13432, 3));
addSongEvent(new NoteStrumEvent(13671, 2));
addSongEvent(new NoteStrumEvent(14154, 1));
addSongEvent(new NoteStrumEvent(14394, 1));
addSongEvent(new NoteStrumEvent(14631, 1));
addSongEvent(new NoteStrumEvent(14816, 1));
addSongEvent(new NoteSustainedEvent(15110, 3, 800));
addSongEvent(new NoteStrumEvent(16028, 1));
addSongEvent(new NoteStrumEvent(16311, 1));
addSongEvent(new NoteStrumEvent(16549, 1));
addSongEvent(new NoteStrumEvent(16748, 1));
addSongEvent(new NoteStrumEvent(16991, 2));
addSongEvent(new NoteStrumEvent(17287, 3));
addSongEvent(new NoteStrumEvent(17510, 2));
addSongEvent(new NoteStrumEvent(17969, 1));
addSongEvent(new NoteStrumEvent(18205, 1));
addSongEvent(new NoteStrumEvent(18464, 1));
addSongEvent(new NoteStrumEvent(0x4900, 1));
addSongEvent(new NoteSustainedEvent(18897, 3, 800));
addSongEvent(new NoteStrumEvent(19903, 1));
addSongEvent(new NoteStrumEvent(20167, 1));
addSongEvent(new NoteStrumEvent(20386, 1));
addSongEvent(new NoteStrumEvent(20585, 1));
addSongEvent(new NoteStrumEvent(20863, 3));
addSongEvent(new NoteStrumEvent(21791, 2));
addSongEvent(new NoteStrumEvent(22978, 2));
addSongEvent(new NoteStrumEvent(23515, 2));
addSongEvent(new NoteStrumEvent(23761, 2));
addSongEvent(new NoteStrumEvent(24922, 3));
addSongEvent(new NoteStrumEvent(25419, 3));
addSongEvent(new NoteStrumEvent(25654, 4));
addSongEvent(new NoteStrumEvent(26854, 4));
addSongEvent(new NoteStrumEvent(27331, 4));
addSongEvent(new NoteStrumEvent(29484, 4));
addSongEvent(new NoteStrumEvent(30665, 5));
addSongEvent(new NoteStrumEvent(31172, 5));
addSongEvent(new NoteStrumEvent(31418, 5));
addSongEvent(new NoteStrumEvent(32615, 1));
addSongEvent(new NoteStrumEvent(33098, 1));
addSongEvent(new NoteStrumEvent(33323, 1));
addSongEvent(new NoteStrumEvent(34521, 1));
addSongEvent(new NoteStrumEvent(35000, 1));
addSongEvent(new NoteSustainedEvent(37157, 1, 800));
addSongEvent(new NoteSustainedEvent(38115, 3, 800));
addSongEvent(new NoteSustainedEvent(39078, 1, 800));
addSongEvent(new NoteStrumEvent(40036, 2));
addSongEvent(new NoteStrumEvent(40262, 3));
addSongEvent(new NoteStrumEvent(40515, 2));
addSongEvent(new NoteSustainedEvent(40994, 1, 800));
addSongEvent(new NoteSustainedEvent(41954, 3, 800));
addSongEvent(new NoteSustainedEvent(42896, 1, 800));
addSongEvent(new NoteStrumEvent(43854, 2));
addSongEvent(new NoteStrumEvent(44093, 3));
addSongEvent(new NoteStrumEvent(44377, 2));
addSongEvent(new NoteSustainedEvent(44824, 2, 800));
addSongEvent(new NoteSustainedEvent(45783, 3, 800));
addSongEvent(new NoteSustainedEvent(46751, 2, 800));
addSongEvent(new NoteStrumEvent(47711, 3));
addSongEvent(new NoteStrumEvent(47959, 4));
addSongEvent(new NoteStrumEvent(48210, 3));
addSongEvent(new NoteSustainedEvent(48671, 4, 800));
addSongEvent(new NoteSustainedEvent(49635, 5, 800));
addSongEvent(new NoteSustainedEvent(50591, 4, 800));
addSongEvent(new NoteStrumEvent(51599, 3));
addSongEvent(new NoteStrumEvent(51816, 4));
addSongEvent(new NoteStrumEvent(52030, 3));
addSongEvent(new NoteSustainedEvent(52511, 3, 800));
addSongEvent(new NoteSustainedEvent(53947, 5, 400));
addSongEvent(new NoteSustainedEvent(54410, 4, 1000));
addSongEvent(new NoteSustainedEvent(56342, 1, 800));
addSongEvent(new NoteSustainedEvent(57302, 2, 800));
addSongEvent(new NoteSustainedEvent(58260, 3, 800));
addSongEvent(new NoteSustainedEvent(60173, 3, 800));
addSongEvent(new NoteSustainedEvent(61610, 5, 400));
addSongEvent(new NoteSustainedEvent(62095, 4, 1000));
addSongEvent(new NoteSustainedEvent(64007, 1, 800));
addSongEvent(new NoteSustainedEvent(64971, 2, 800));
addSongEvent(new NoteSustainedEvent(65925, 1, 800));
addSongEvent(new NoteSustainedEvent(66866, 2, 800));
addSongEvent(new NoteSustainedEvent(67840, 3, 800));
addSongEvent(new NoteSustainedEvent(68808, 4, 800));
addSongEvent(new NoteStrumEvent(69768, 1));
addSongEvent(new NoteStrumEvent(70243, 1));
addSongEvent(new NoteStrumEvent(70726, 2));
addSongEvent(new NoteStrumEvent(71205, 2));
addSongEvent(new NoteStrumEvent(71686, 3));
addSongEvent(new NoteStrumEvent(72165, 3));
addSongEvent(new NoteStrumEvent(72646, 3));
}
}
}//package
Section 58
//Song2 (Song2)
package {
public class Song2 extends Song {
public function Song2(){
buildEventList();
setSongTitle("Darkness After");
setSongAuthor("Rocker206");
setSongURL("http://www.newgrounds.com/audio/view.php?id=836249&sub=67696");
setTrack(2);
}
public function buildEventList(){
addSongEvent(new NoteStrumEvent(5022, 1));
addSongEvent(new NoteStrumEvent(5524, 1));
addSongEvent(new NoteStrumEvent(5774, 2));
addSongEvent(new NoteStrumEvent(6243, 1));
addSongEvent(new NoteStrumEvent(6711, 2));
addSongEvent(new NoteStrumEvent(7202, 3));
addSongEvent(new NoteStrumEvent(7682, 2));
addSongEvent(new NoteStrumEvent(8158, 1));
addSongEvent(new NoteStrumEvent(8647, 1));
addSongEvent(new NoteSustainedEvent(8873, 3, 400));
addSongEvent(new NoteStrumEvent(9368, 1));
addSongEvent(new NoteStrumEvent(9614, 1));
addSongEvent(new NoteStrumEvent(9847, 2));
addSongEvent(new NoteStrumEvent(10112, 2));
addSongEvent(new NoteStrumEvent(10331, 1));
addSongEvent(new NoteStrumEvent(10600, 1));
addSongEvent(new NoteStrumEvent(10803, 3));
addSongEvent(new NoteStrumEvent(11046, 3));
addSongEvent(new NoteStrumEvent(11288, 1));
addSongEvent(new NoteStrumEvent(11540, 1));
addSongEvent(new NoteStrumEvent(11753, 2));
addSongEvent(new NoteStrumEvent(11996, 2));
addSongEvent(new NoteStrumEvent(12248, 3));
addSongEvent(new NoteStrumEvent(12486, 3));
addSongEvent(new NoteSustainedEvent(12712, 4, 300));
addSongEvent(new NoteSustainedEvent(13199, 2, 1600));
addSongEvent(new NoteSustainedEvent(15122, 3, 1200));
addSongEvent(new NoteSustainedEvent(16554, 2, 400));
addSongEvent(new NoteStrumEvent(17044, 2));
addSongEvent(new NoteStrumEvent(17293, 2));
addSongEvent(new NoteStrumEvent(17524, 1));
addSongEvent(new NoteStrumEvent(17786, 1));
addSongEvent(new NoteStrumEvent(18474, 2));
addSongEvent(new NoteStrumEvent(18965, 2));
addSongEvent(new NoteStrumEvent(19215, 1));
addSongEvent(new NoteStrumEvent(19430, 1));
addSongEvent(new NoteStrumEvent(19635, 1));
addSongEvent(new NoteSustainedEvent(19911, 3, 700));
addSongEvent(new NoteStrumEvent(20880, 2));
addSongEvent(new NoteStrumEvent(21136, 2));
addSongEvent(new NoteStrumEvent(21367, 1));
addSongEvent(new NoteSustainedEvent(21612, 1, 2000));
addSongEvent(new NoteSustainedEvent(23753, 2, 800));
addSongEvent(new NoteSustainedEvent(24723, 1, 700));
addSongEvent(new NoteSustainedEvent(25677, 2, 800));
addSongEvent(new NoteSustainedEvent(26629, 1, 700));
addSongEvent(new NoteSustainedEvent(27594, 2, 300));
addSongEvent(new NoteSustainedEvent(28068, 3, 300));
addSongEvent(new NoteSustainedEvent(28568, 2, 800));
addSongEvent(new NoteSustainedEvent(29541, 1, 700));
addSongEvent(new NoteSustainedEvent(30483, 2, 800));
addSongEvent(new NoteSustainedEvent(31445, 3, 800));
addSongEvent(new NoteSustainedEvent(32402, 4, 700));
addSongEvent(new NoteSustainedEvent(33356, 3, 800));
addSongEvent(new NoteSustainedEvent(34312, 2, 700));
addSongEvent(new NoteSustainedEvent(35275, 1, 800));
addSongEvent(new NoteStrumEvent(36243, 1));
addSongEvent(new NoteStrumEvent(36718, 1));
addSongEvent(new NoteStrumEvent(37194, 2));
addSongEvent(new NoteStrumEvent(37664, 2));
addSongEvent(new NoteStrumEvent(37914, 3));
addSongEvent(new NoteStrumEvent(38651, 3));
addSongEvent(new NoteStrumEvent(38894, 4));
addSongEvent(new NoteStrumEvent(39372, 4));
addSongEvent(new NoteStrumEvent(39601, 1));
addSongEvent(new NoteSustainedEvent(40085, 4, 400));
addSongEvent(new NoteSustainedEvent(40559, 3, 300));
addSongEvent(new NoteStrumEvent(41035, 1));
addSongEvent(new NoteStrumEvent(41294, 1));
addSongEvent(new NoteStrumEvent(41505, 2));
addSongEvent(new NoteStrumEvent(41755, 2));
addSongEvent(new NoteStrumEvent(42489, 3));
addSongEvent(new NoteSustainedEvent(42730, 4, 400));
addSongEvent(new NoteStrumEvent(43202, 3));
addSongEvent(new NoteStrumEvent(43442, 2));
addSongEvent(new NoteSustainedEvent(43926, 1, 600));
addSongEvent(new NoteSustainedEvent(44876, 2, 700));
addSongEvent(new NoteSustainedEvent(45839, 1, 1700));
addSongEvent(new NoteSustainedEvent(47765, 2, 1100));
addSongEvent(new NoteSustainedEvent(49438, 3, 1900));
addSongEvent(new NoteSustainedEvent(51612, 2, 1400));
addSongEvent(new NoteSustainedEvent(53274, 1, 1900));
addSongEvent(new NoteSustainedEvent(55441, 2, 1400));
addSongEvent(new NoteSustainedEvent(57113, 3, 1900));
addSongEvent(new NoteSustainedEvent(59282, 4, 1400));
addSongEvent(new NoteSustainedEvent(60956, 3, 1900));
addSongEvent(new NoteSustainedEvent(63131, 2, 1400));
addSongEvent(new NoteSustainedEvent(64794, 1, 1400));
addSongEvent(new NoteStrumEvent(66963, 2));
addSongEvent(new NoteStrumEvent(67442, 2));
addSongEvent(new NoteStrumEvent(67931, 3));
addSongEvent(new NoteStrumEvent(68398, 3));
addSongEvent(new NoteStrumEvent(68868, 2));
addSongEvent(new NoteStrumEvent(69350, 2));
addSongEvent(new NoteStrumEvent(69835, 4));
addSongEvent(new NoteStrumEvent(70315, 4));
addSongEvent(new NoteStrumEvent(70802, 2));
addSongEvent(new NoteStrumEvent(71280, 2));
addSongEvent(new NoteStrumEvent(71765, 3));
addSongEvent(new NoteStrumEvent(72239, 3));
addSongEvent(new NoteStrumEvent(72723, 4));
addSongEvent(new NoteStrumEvent(73206, 4));
addSongEvent(new NoteStrumEvent(73684, 5));
addSongEvent(new NoteStrumEvent(74160, 5));
addSongEvent(new NoteSustainedEvent(74645, 1, 700));
addSongEvent(new NoteSustainedEvent(75597, 2, 800));
addSongEvent(new NoteSustainedEvent(76553, 3, 800));
addSongEvent(new NoteSustainedEvent(77514, 2, 700));
addSongEvent(new NoteSustainedEvent(78485, 1, 800));
addSongEvent(new NoteSustainedEvent(79451, 2, 700));
addSongEvent(new NoteSustainedEvent(80390, 1, 800));
addSongEvent(new NoteSustainedEvent(81355, 3, 800));
addSongEvent(new NoteStrumEvent(82320, 1));
addSongEvent(new NoteStrumEvent(82574, 1));
addSongEvent(new NoteStrumEvent(82805, 2));
addSongEvent(new NoteStrumEvent(83061, 2));
addSongEvent(new NoteStrumEvent(83283, 3));
addSongEvent(new NoteStrumEvent(83513, 3));
addSongEvent(new NoteStrumEvent(83756, 2));
addSongEvent(new NoteStrumEvent(84013, 2));
addSongEvent(new NoteStrumEvent(84228, 5));
addSongEvent(new NoteStrumEvent(84483, 5));
addSongEvent(new NoteStrumEvent(84709, 1));
addSongEvent(new NoteStrumEvent(84984, 1));
addSongEvent(new NoteStrumEvent(85195, 2));
addSongEvent(new NoteStrumEvent(85448, 2));
addSongEvent(new NoteSustainedEvent(85676, 2, 300));
addSongEvent(new NoteSustainedEvent(86163, 1, 700));
addSongEvent(new NoteSustainedEvent(87119, 2, 700));
addSongEvent(new NoteSustainedEvent(88069, 1, 700));
addSongEvent(new NoteSustainedEvent(89034, 3, 700));
addSongEvent(new NoteSustainedEvent(90003, 2, 700));
addSongEvent(new NoteStrumEvent(90488, 2));
addSongEvent(new NoteStrumEvent(90998, 2));
addSongEvent(new NoteStrumEvent(91438, 3));
addSongEvent(new NoteStrumEvent(91923, 3));
addSongEvent(new NoteStrumEvent(92388, 2));
addSongEvent(new NoteStrumEvent(92879, 2));
addSongEvent(new NoteStrumEvent(93353, 4));
addSongEvent(new NoteSustainedEvent(93840, 5, 1500));
addSongEvent(new NoteSustainedEvent(95752, 4, 1700));
addSongEvent(new NoteSustainedEvent(97687, 1, 1700));
addSongEvent(new NoteSustainedEvent(99595, 2, 600));
addSongEvent(new NoteSustainedEvent(100330, 3, 600));
addSongEvent(new NoteSustainedEvent(101043, 4, 300));
addSongEvent(new NoteStrumEvent(101538, 1));
addSongEvent(new NoteStrumEvent(101997, 1));
addSongEvent(new NoteStrumEvent(102473, 2));
addSongEvent(new NoteStrumEvent(102941, 2));
addSongEvent(new NoteStrumEvent(103195, 3));
addSongEvent(new NoteStrumEvent(103916, 3));
addSongEvent(new NoteStrumEvent(104392, 4));
addSongEvent(new NoteStrumEvent(104883, 4));
addSongEvent(new NoteStrumEvent(105366, 5));
addSongEvent(new NoteSustainedEvent(106312, 3, 600));
addSongEvent(new NoteStrumEvent(107277, 1));
addSongEvent(new NoteStrumEvent(108479, 2));
addSongEvent(new NoteStrumEvent(108720, 4));
addSongEvent(new NoteSustainedEvent(109204, 1, 800));
addSongEvent(new NoteStrumEvent(110156, 2));
addSongEvent(new NoteStrumEvent(110872, 2));
addSongEvent(new NoteStrumEvent(111598, 3));
addSongEvent(new NoteStrumEvent(112071, 3));
addSongEvent(new NoteStrumEvent(112561, 2));
addSongEvent(new NoteStrumEvent(113045, 2));
addSongEvent(new NoteStrumEvent(114002, 3));
addSongEvent(new NoteSustainedEvent(115919, 4, 400));
addSongEvent(new NoteStrumEvent(116399, 2));
addSongEvent(new NoteStrumEvent(116888, 2));
addSongEvent(new NoteStrumEvent(117358, 3));
addSongEvent(new NoteStrumEvent(117832, 3));
addSongEvent(new NoteStrumEvent(118308, 4));
addSongEvent(new NoteStrumEvent(118557, 4));
addSongEvent(new NoteStrumEvent(119285, 5));
addSongEvent(new NoteSustainedEvent(119531, 3, 900));
addSongEvent(new NoteSustainedEvent(120722, 2, 700));
addSongEvent(new NoteSustainedEvent(121676, 3, 800));
addSongEvent(new NoteSustainedEvent(122639, 1, 1700));
addSongEvent(new NoteSustainedEvent(124565, 2, 1700));
addSongEvent(new NoteSustainedEvent(126480, 3, 600));
addSongEvent(new NoteSustainedEvent(127210, 4, 500));
addSongEvent(new NoteStrumEvent(127921, 3));
addSongEvent(new NoteStrumEvent(128488, 5));
}
}
}//package
Section 59
//Song3 (Song3)
package {
public class Song3 extends Song {
public function Song3(){
buildEventList();
setSongTitle("Your Time Has Come");
setSongAuthor("Rocker206");
setSongURL("http://www.newgrounds.com/audio/view.php?id=836249&sub=67696");
setTrack(3);
}
public function buildEventList(){
addSongEvent(new NoteSustainedEvent(19071, 1, 600));
addSongEvent(new NoteStrumEvent(19866, 2));
addSongEvent(new NoteStrumEvent(20464, 3));
addSongEvent(new NoteStrumEvent(20864, 4));
addSongEvent(new NoteSustainedEvent(21070, 1, 600));
addSongEvent(new NoteStrumEvent(21867, 2));
addSongEvent(new NoteSustainedEvent(0x5700, 3, 600));
addSongEvent(new NoteStrumEvent(23065, 2));
addSongEvent(new NoteStrumEvent(23665, 1));
addSongEvent(new NoteSustainedEvent(24065, 2, 1000));
addSongEvent(new NoteSustainedEvent(25470, 1, 600));
addSongEvent(new NoteStrumEvent(26266, 2));
addSongEvent(new NoteStrumEvent(26864, 3));
addSongEvent(new NoteSustainedEvent(27264, 4, 1200));
addSongEvent(new NoteSustainedEvent(0x7000, 2, 600));
addSongEvent(new NoteStrumEvent(29467, 3));
addSongEvent(new NoteStrumEvent(30068, 1));
addSongEvent(new NoteSustainedEvent(30468, 2, 1000));
addSongEvent(new NoteSustainedEvent(31870, 2, 600));
addSongEvent(new NoteStrumEvent(32666, 2));
addSongEvent(new NoteStrumEvent(32864, 3));
addSongEvent(new NoteSustainedEvent(33264, 4, 1200));
addSongEvent(new NoteSustainedEvent(35069, 3, 600));
addSongEvent(new NoteStrumEvent(35867, 1));
addSongEvent(new NoteStrumEvent(36463, 1));
addSongEvent(new NoteSustainedEvent(36865, 2, 1000));
addSongEvent(new NoteSustainedEvent(38273, 3, 1000));
addSongEvent(new NoteSustainedEvent(39066, 2, 400));
addSongEvent(new NoteSustainedEvent(39669, 1, 400));
addSongEvent(new NoteSustainedEvent(40274, 2, 1000));
addSongEvent(new NoteSustainedEvent(41467, 1, 1000));
addSongEvent(new NoteStrumEvent(42868, 1));
addSongEvent(new NoteStrumEvent(43265, 1));
addSongEvent(new NoteStrumEvent(43471, 2));
addSongEvent(new NoteStrumEvent(44670, 1));
addSongEvent(new NoteStrumEvent(45506, 1));
addSongEvent(new NoteStrumEvent(46703, 2));
addSongEvent(new NoteStrumEvent(47060, 3));
addSongEvent(new NoteSustainedEvent(47361, 4, 400));
addSongEvent(new NoteStrumEvent(47869, 2));
addSongEvent(new NoteStrumEvent(48716, 2));
addSongEvent(new NoteStrumEvent(49871, 3));
addSongEvent(new NoteStrumEvent(50266, 3));
addSongEvent(new NoteSustainedEvent(50598, 4, 400));
addSongEvent(new NoteStrumEvent(51070, 1));
addSongEvent(new NoteStrumEvent(51877, 1));
addSongEvent(new NoteStrumEvent(53076, 2));
addSongEvent(new NoteStrumEvent(53463, 3));
addSongEvent(new NoteSustainedEvent(53779, 4, 400));
addSongEvent(new NoteStrumEvent(54274, 2));
addSongEvent(new NoteStrumEvent(55069, 2));
addSongEvent(new NoteStrumEvent(56268, 3));
addSongEvent(new NoteStrumEvent(56675, 3));
addSongEvent(new NoteSustainedEvent(56869, 4, 400));
addSongEvent(new NoteStrumEvent(57470, 1));
addSongEvent(new NoteStrumEvent(58369, 1));
addSongEvent(new NoteStrumEvent(59271, 2));
addSongEvent(new NoteStrumEvent(60271, 3));
addSongEvent(new NoteStrumEvent(61468, 1));
addSongEvent(new NoteStrumEvent(62158, 2));
addSongEvent(new NoteSustainedEvent(62666, 3, 500));
addSongEvent(new NoteSustainedEvent(64141, 2, 700));
addSongEvent(new NoteSustainedEvent(65063, 3, 1000));
addSongEvent(new NoteSustainedEvent(66267, 4, 1000));
addSongEvent(new NoteSustainedEvent(67464, 5, 500));
addSongEvent(new NoteStrumEvent(68960, 1));
addSongEvent(new NoteStrumEvent(69262, 2));
addSongEvent(new NoteStrumEvent(69863, 2));
addSongEvent(new NoteStrumEvent(70173, 3));
addSongEvent(new NoteSustainedEvent(71072, 4, 1800));
addSongEvent(new NoteSustainedEvent(75870, 5, 1800));
addSongEvent(new NoteSustainedEvent(80671, 4, 1800));
addSongEvent(new NoteSustainedEvent(85471, 5, 1800));
addSongEvent(new NoteSustainedEvent(90274, 3, 1800));
addSongEvent(new NoteSustainedEvent(95072, 5, 1800));
addSongEvent(new NoteStrumEvent(99870, 1));
addSongEvent(new NoteStrumEvent(103038, 3));
addSongEvent(new NoteStrumEvent(103837, 5));
addSongEvent(new NoteStrumEvent(104438, 1));
addSongEvent(new NoteSustainedEvent(105041, 2, 600));
addSongEvent(new NoteStrumEvent(105873, 1));
addSongEvent(new NoteStrumEvent(106243, 1));
addSongEvent(new NoteSustainedEvent(107036, 2, 400));
addSongEvent(new NoteStrumEvent(107635, 1));
addSongEvent(new NoteSustainedEvent(108037, 3, 800));
addSongEvent(new NoteStrumEvent(109003, 1));
addSongEvent(new NoteStrumEvent(109440, 1));
addSongEvent(new NoteStrumEvent(110237, 2));
addSongEvent(new NoteStrumEvent(110836, 2));
addSongEvent(new NoteStrumEvent(111234, 3));
addSongEvent(new NoteStrumEvent(111444, 3));
addSongEvent(new NoteStrumEvent(112239, 4));
addSongEvent(new NoteStrumEvent(112643, 4));
addSongEvent(new NoteStrumEvent(113436, 5));
addSongEvent(new NoteSustainedEvent(114039, 3, 1200));
addSongEvent(new NoteStrumEvent(115440, 1));
addSongEvent(new NoteStrumEvent(115844, 2));
addSongEvent(new NoteSustainedEvent(116637, 1, 400));
addSongEvent(new NoteStrumEvent(117236, 2));
addSongEvent(new NoteStrumEvent(117636, 2));
addSongEvent(new NoteSustainedEvent(117841, 3, 600));
addSongEvent(new NoteStrumEvent(118637, 2));
addSongEvent(new NoteSustainedEvent(119043, 3, 600));
addSongEvent(new NoteSustainedEvent(119836, 4, 500));
addSongEvent(new NoteStrumEvent(120435, 1));
addSongEvent(new NoteStrumEvent(120839, 2));
addSongEvent(new NoteSustainedEvent(121038, 3, 1000));
addSongEvent(new NoteSustainedEvent(122240, 1, 600));
addSongEvent(new NoteStrumEvent(123037, 1));
addSongEvent(new NoteStrumEvent(123636, 3));
addSongEvent(new NoteStrumEvent(124033, 2));
addSongEvent(new NoteStrumEvent(125036, 4));
addSongEvent(new NoteSustainedEvent(125443, 1, 600));
addSongEvent(new NoteStrumEvent(126236, 1));
addSongEvent(new NoteStrumEvent(126835, 2));
addSongEvent(new NoteSustainedEvent(127323, 3, 600));
addSongEvent(new NoteStrumEvent(128235, 2));
addSongEvent(new NoteStrumEvent(128644, 1));
addSongEvent(new NoteStrumEvent(129848, 1));
addSongEvent(new NoteSustainedEvent(130250, 2, 1200));
addSongEvent(new NoteStrumEvent(131845, 3));
addSongEvent(new NoteStrumEvent(133076, 3));
addSongEvent(new NoteSustainedEvent(133490, 4, 1200));
addSongEvent(new NoteStrumEvent(135044, 5));
addSongEvent(new NoteStrumEvent(136273, 5));
addSongEvent(new NoteSustainedEvent(136639, 1, 1200));
addSongEvent(new NoteStrumEvent(138243, 2));
addSongEvent(new NoteStrumEvent(139447, 2));
addSongEvent(new NoteSustainedEvent(139872, 3, 1000));
addSongEvent(new NoteSustainedEvent(141444, 4, 600));
addSongEvent(new NoteStrumEvent(142237, 1));
addSongEvent(new NoteStrumEvent(142836, 1));
addSongEvent(new NoteSustainedEvent(143233, 2, 1000));
addSongEvent(new NoteStrumEvent(144641, 3));
addSongEvent(new NoteStrumEvent(145436, 3));
addSongEvent(new NoteStrumEvent(146039, 4));
addSongEvent(new NoteSustainedEvent(146434, 2, 1000));
addSongEvent(new NoteSustainedEvent(147846, 1, 600));
addSongEvent(new NoteStrumEvent(148673, 3));
addSongEvent(new NoteStrumEvent(149236, 3));
addSongEvent(new NoteSustainedEvent(149638, 2, 1000));
addSongEvent(new NoteSustainedEvent(151043, 2, 600));
addSongEvent(new NoteStrumEvent(151836, 3));
addSongEvent(new NoteStrumEvent(152437, 3));
addSongEvent(new NoteSustainedEvent(152719, 2, 1000));
addSongEvent(new NoteStrumEvent(154239, 5));
}
}
}//package
Section 60
//Song4 (Song4)
package {
public class Song4 extends Song {
public function Song4(){
buildEventList();
setSongTitle("A New Song in the Works");
setSongAuthor("Metalojus");
setSongURL("http://www.newgrounds.com/audio/view.php?id=836249&sub=67696");
setTrack(4);
}
public function buildEventList(){
addSongEvent(new NoteStrumEvent(13149, 1));
addSongEvent(new NoteStrumEvent(14056, 2));
addSongEvent(new NoteSustainedEvent(14602, 2, 1200));
addSongEvent(new NoteStrumEvent(16059, 1));
addSongEvent(new NoteStrumEvent(16963, 2));
addSongEvent(new NoteSustainedEvent(17514, 3, 1000));
addSongEvent(new NoteStrumEvent(18964, 2));
addSongEvent(new NoteStrumEvent(19876, 2));
addSongEvent(new NoteStrumEvent(20424, 2));
addSongEvent(new NoteSustainedEvent(21877, 3, 1200));
addSongEvent(new NoteSustainedEvent(23377, 3, 500));
addSongEvent(new NoteSustainedEvent(24055, 4, 500));
addSongEvent(new NoteStrumEvent(24784, 1));
addSongEvent(new NoteStrumEvent(25330, 2));
addSongEvent(new NoteStrumEvent(25873, 2));
addSongEvent(new NoteSustainedEvent(26963, 3, 500));
addSongEvent(new NoteStrumEvent(27691, 1));
addSongEvent(new NoteStrumEvent(28243, 1));
addSongEvent(new NoteSustainedEvent(28786, 3, 1200));
addSongEvent(new NoteStrumEvent(30604, 2));
addSongEvent(new NoteStrumEvent(31153, 2));
addSongEvent(new NoteSustainedEvent(31693, 3, 1200));
addSongEvent(new NoteStrumEvent(33517, 2));
addSongEvent(new NoteStrumEvent(34603, 2));
addSongEvent(new NoteStrumEvent(35690, 3));
addSongEvent(new NoteStrumEvent(36427, 3));
addSongEvent(new NoteStrumEvent(36967, 1));
addSongEvent(new NoteSustainedEvent(37513, 2, 800));
addSongEvent(new NoteSustainedEvent(38597, 2, 500));
addSongEvent(new NoteStrumEvent(39334, 1));
addSongEvent(new NoteStrumEvent(39893, 1));
addSongEvent(new NoteSustainedEvent(40434, 3, 800));
addSongEvent(new NoteStrumEvent(41505, 3));
addSongEvent(new NoteStrumEvent(42236, 3));
addSongEvent(new NoteStrumEvent(42785, 3));
addSongEvent(new NoteSustainedEvent(43333, 5, 800));
addSongEvent(new NoteSustainedEvent(44417, 5, 500));
addSongEvent(new NoteStrumEvent(45157, 1));
addSongEvent(new NoteStrumEvent(46254, 1));
addSongEvent(new NoteStrumEvent(47325, 1));
addSongEvent(new NoteStrumEvent(48239, 2));
addSongEvent(new NoteSustainedEvent(49511, 1, 1000));
addSongEvent(new NoteStrumEvent(50974, 1));
addSongEvent(new NoteStrumEvent(54785, 1));
addSongEvent(new NoteSustainedEvent(55331, 3, 1200));
addSongEvent(new NoteStrumEvent(56786, 2));
addSongEvent(new NoteStrumEvent(57504, 2));
addSongEvent(new NoteStrumEvent(58239, 3));
addSongEvent(new NoteStrumEvent(58957, 3));
addSongEvent(new NoteStrumEvent(59688, 1));
addSongEvent(new NoteStrumEvent(60239, 1));
addSongEvent(new NoteSustainedEvent(60785, 2, 800));
addSongEvent(new NoteSustainedEvent(61872, 2, 500));
addSongEvent(new NoteStrumEvent(62604, 3));
addSongEvent(new NoteStrumEvent(63149, 3));
addSongEvent(new NoteSustainedEvent(63695, 1, 800));
addSongEvent(new NoteSustainedEvent(64785, 1, 800));
addSongEvent(new NoteStrumEvent(65508, 2));
addSongEvent(new NoteStrumEvent(66073, 2));
addSongEvent(new NoteSustainedEvent(66605, 3, 800));
addSongEvent(new NoteSustainedEvent(67689, 3, 500));
addSongEvent(new NoteStrumEvent(68421, 4));
addSongEvent(new NoteStrumEvent(69513, 4));
addSongEvent(new NoteStrumEvent(70597, 5));
addSongEvent(new NoteStrumEvent(71331, 1));
addSongEvent(new NoteStrumEvent(71874, 1));
addSongEvent(new NoteSustainedEvent(72418, 2, 800));
addSongEvent(new NoteSustainedEvent(73507, 2, 500));
addSongEvent(new NoteStrumEvent(74246, 2));
addSongEvent(new NoteStrumEvent(74787, 2));
addSongEvent(new NoteSustainedEvent(75335, 5, 800));
addSongEvent(new NoteStrumEvent(76419, 3));
addSongEvent(new NoteStrumEvent(77148, 3));
addSongEvent(new NoteStrumEvent(77697, 3));
addSongEvent(new NoteSustainedEvent(78245, 1, 1500));
addSongEvent(new NoteSustainedEvent(80063, 2, 800));
addSongEvent(new NoteSustainedEvent(81148, 3, 1500));
addSongEvent(new NoteStrumEvent(82963, 1));
addSongEvent(new NoteStrumEvent(83478, 1));
addSongEvent(new NoteStrumEvent(84052, 2));
addSongEvent(new NoteStrumEvent(85870, 2));
addSongEvent(new NoteStrumEvent(86393, 3));
addSongEvent(new NoteStrumEvent(86962, 3));
addSongEvent(new NoteStrumEvent(88780, 4));
addSongEvent(new NoteStrumEvent(89305, 4));
addSongEvent(new NoteStrumEvent(89872, 5));
addSongEvent(new NoteStrumEvent(91693, 5));
addSongEvent(new NoteStrumEvent(92234, 5));
addSongEvent(new NoteStrumEvent(92780, 5));
addSongEvent(new NoteSustainedEvent(93163, 1, 1200));
addSongEvent(new NoteStrumEvent(94608, 1));
addSongEvent(new NoteStrumEvent(95115, 1));
addSongEvent(new NoteStrumEvent(95690, 2));
addSongEvent(new NoteStrumEvent(97510, 2));
addSongEvent(new NoteStrumEvent(98028, 3));
addSongEvent(new NoteStrumEvent(98600, 3));
addSongEvent(new NoteStrumEvent(100420, 4));
addSongEvent(new NoteStrumEvent(100964, 4));
addSongEvent(new NoteStrumEvent(101510, 5));
addSongEvent(new NoteStrumEvent(103330, 5));
addSongEvent(new NoteStrumEvent(103876, 3));
addSongEvent(new NoteStrumEvent(104422, 1));
addSongEvent(new NoteSustainedEvent(116420, 1, 500));
addSongEvent(new NoteStrumEvent(117149, 2));
addSongEvent(new NoteStrumEvent(117878, 2));
addSongEvent(new NoteSustainedEvent(119330, 1, 800));
addSongEvent(new NoteStrumEvent(120419, 3));
addSongEvent(new NoteSustainedEvent(121149, 1, 800));
addSongEvent(new NoteStrumEvent(122248, 3));
addSongEvent(new NoteSustainedEvent(123327, 1, 1500));
addSongEvent(new NoteStrumEvent(125153, 2));
addSongEvent(new NoteSustainedEvent(126237, 1, 500));
addSongEvent(new NoteStrumEvent(126999, 3));
addSongEvent(new NoteSustainedEvent(128238, 4, 500));
addSongEvent(new NoteSustainedEvent(129152, 4, 500));
addSongEvent(new NoteSustainedEvent(129876, 5, 900));
addSongEvent(new NoteStrumEvent(130965, 1));
addSongEvent(new NoteStrumEvent(132208, 1));
addSongEvent(new NoteStrumEvent(132966, 3));
addSongEvent(new NoteStrumEvent(133883, 1));
addSongEvent(new NoteStrumEvent(135157, 1));
addSongEvent(new NoteSustainedEvent(135894, 2, 800));
addSongEvent(new NoteSustainedEvent(136801, 2, 1500));
addSongEvent(new NoteSustainedEvent(139703, 5, 800));
addSongEvent(new NoteSustainedEvent(140779, 2, 3000));
addSongEvent(new NoteSustainedEvent(144052, 2, 1200));
addSongEvent(new NoteSustainedEvent(145512, 3, 1000));
addSongEvent(new NoteStrumEvent(146970, 1));
addSongEvent(new NoteStrumEvent(148056, 1));
addSongEvent(new NoteStrumEvent(149331, 3));
addSongEvent(new NoteStrumEvent(150358, 1));
addSongEvent(new NoteStrumEvent(151687, 1));
addSongEvent(new NoteSustainedEvent(152858, 2, 800));
addSongEvent(new NoteStrumEvent(153876, 1));
addSongEvent(new NoteStrumEvent(154253, 1));
addSongEvent(new NoteStrumEvent(154796, 2));
addSongEvent(new NoteStrumEvent(155326, 2));
addSongEvent(new NoteStrumEvent(155875, 3));
addSongEvent(new NoteStrumEvent(156416, 3));
addSongEvent(new NoteStrumEvent(157690, 1));
addSongEvent(new NoteSustainedEvent(158234, 5, 1200));
addSongEvent(new NoteSustainedEvent(160060, 4, 800));
addSongEvent(new NoteSustainedEvent(161141, 5, 800));
addSongEvent(new NoteStrumEvent(162236, 1));
addSongEvent(new NoteSustainedEvent(162972, 2, 800));
addSongEvent(new NoteSustainedEvent(164052, 3, 800));
addSongEvent(new NoteStrumEvent(165145, 1));
addSongEvent(new NoteSustainedEvent(165874, 2, 2200));
addSongEvent(new NoteSustainedEvent(168419, 3, 1000));
addSongEvent(new NoteStrumEvent(169874, 1));
addSongEvent(new NoteSustainedEvent(171696, 4, 1200));
addSongEvent(new NoteStrumEvent(173507, 3));
addSongEvent(new NoteStrumEvent(174599, 4));
addSongEvent(new NoteStrumEvent(175166, 1));
addSongEvent(new NoteSustainedEvent(175704, 2, 4000));
}
}
}//package
Section 61
//Song5 (Song5)
package {
public class Song5 extends Song {
public function Song5(){
buildEventList();
setSongTitle("A Place of Misery");
setSongAuthor("Bad-Man-Inc");
setSongURL("http://www.newgrounds.com/audio/view.php?id=836249&sub=67696");
setTrack(5);
}
public function buildEventList(){
addSongEvent(new NoteSustainedEvent(10528, 1, 800));
addSongEvent(new NoteStrumEvent(11738, 2));
addSongEvent(new NoteStrumEvent(12553, 3));
addSongEvent(new NoteSustainedEvent(13230, 1, 800));
addSongEvent(new NoteStrumEvent(14563, 2));
addSongEvent(new NoteStrumEvent(15251, 3));
addSongEvent(new NoteSustainedEvent(15945, 1, 800));
addSongEvent(new NoteStrumEvent(17282, 2));
addSongEvent(new NoteStrumEvent(17937, 3));
addSongEvent(new NoteSustainedEvent(18614, 1, 800));
addSongEvent(new NoteStrumEvent(20000, 3));
addSongEvent(new NoteStrumEvent(20651, 4));
addSongEvent(new NoteSustainedEvent(21365, 2, 800));
addSongEvent(new NoteStrumEvent(22645, 3));
addSongEvent(new NoteStrumEvent(23332, 4));
addSongEvent(new NoteSustainedEvent(23999, 2, 800));
addSongEvent(new NoteStrumEvent(25385, 3));
addSongEvent(new NoteStrumEvent(26056, 4));
addSongEvent(new NoteSustainedEvent(26723, 2, 800));
addSongEvent(new NoteStrumEvent(28082, 3));
addSongEvent(new NoteStrumEvent(28727, 4));
addSongEvent(new NoteSustainedEvent(29542, 1, 800));
addSongEvent(new NoteStrumEvent(30779, 5));
addSongEvent(new NoteStrumEvent(31446, 5));
addSongEvent(new NoteSustainedEvent(32075, 1, 1000));
addSongEvent(new NoteStrumEvent(33445, 2));
addSongEvent(new NoteStrumEvent(34106, 3));
addSongEvent(new NoteSustainedEvent(34788, 1, 1000));
addSongEvent(new NoteStrumEvent(36142, 2));
addSongEvent(new NoteStrumEvent(36840, 3));
addSongEvent(new NoteSustainedEvent(37517, 1, 1000));
addSongEvent(new NoteStrumEvent(38669, 2));
addSongEvent(new NoteStrumEvent(39527, 3));
addSongEvent(new NoteSustainedEvent(40204, 1, 1000));
addSongEvent(new NoteStrumEvent(41563, 3));
addSongEvent(new NoteStrumEvent(42192, 4));
addSongEvent(new NoteSustainedEvent(42885, 2, 800));
addSongEvent(new NoteStrumEvent(44250, 3));
addSongEvent(new NoteStrumEvent(44927, 4));
addSongEvent(new NoteSustainedEvent(45657, 2, 800));
addSongEvent(new NoteStrumEvent(46937, 3));
addSongEvent(new NoteStrumEvent(47619, 4));
addSongEvent(new NoteSustainedEvent(48291, 2, 800));
addSongEvent(new NoteStrumEvent(49645, 3));
addSongEvent(new NoteStrumEvent(50327, 4));
addSongEvent(new NoteSustainedEvent(50999, 1, 800));
addSongEvent(new NoteStrumEvent(52337, 4));
addSongEvent(new NoteStrumEvent(53003, 5));
addSongEvent(new NoteSustainedEvent(53675, 1, 1200));
addSongEvent(new NoteSustainedEvent(55013, 2, 500));
addSongEvent(new NoteSustainedEvent(55700, 3, 500));
addSongEvent(new NoteSustainedEvent(56361, 5, 2000));
addSongEvent(new NoteSustainedEvent(59219, 1, 800));
addSongEvent(new NoteSustainedEvent(60360, 3, 500));
addSongEvent(new NoteSustainedEvent(61095, 4, 500));
addSongEvent(new NoteSustainedEvent(61852, 5, 2000));
addSongEvent(new NoteSustainedEvent(0xFBFB, 1, 1000));
addSongEvent(new NoteSustainedEvent(65813, 2, 500));
addSongEvent(new NoteSustainedEvent(66554, 3, 500));
addSongEvent(new NoteSustainedEvent(67311, 5, 2000));
addSongEvent(new NoteSustainedEvent(69902, 1, 1000));
addSongEvent(new NoteSustainedEvent(71144, 3, 500));
addSongEvent(new NoteSustainedEvent(71826, 4, 500));
addSongEvent(new NoteSustainedEvent(72535, 5, 2000));
addSongEvent(new NoteSustainedEvent(75323, 1, 2000));
addSongEvent(new NoteSustainedEvent(77972, 1, 800));
addSongEvent(new NoteStrumEvent(79294, 2));
addSongEvent(new NoteStrumEvent(79977, 3));
addSongEvent(new NoteSustainedEvent(80632, 1, 800));
addSongEvent(new NoteStrumEvent(82034, 3));
addSongEvent(new NoteStrumEvent(82658, 4));
addSongEvent(new NoteSustainedEvent(83346, 1, 800));
addSongEvent(new NoteStrumEvent(84689, 4));
addSongEvent(new NoteStrumEvent(85355, 5));
addSongEvent(new NoteSustainedEvent(86043, 1, 800));
addSongEvent(new NoteStrumEvent(87397, 2));
addSongEvent(new NoteStrumEvent(88069, 3));
addSongEvent(new NoteSustainedEvent(88740, 1, 800));
addSongEvent(new NoteStrumEvent(90073, 2));
addSongEvent(new NoteStrumEvent(90745, 3));
addSongEvent(new NoteSustainedEvent(91592, 2, 800));
addSongEvent(new NoteStrumEvent(92808, 4));
addSongEvent(new NoteStrumEvent(93453, 5));
addSongEvent(new NoteSustainedEvent(94124, 1, 800));
addSongEvent(new NoteStrumEvent(95468, 2));
addSongEvent(new NoteStrumEvent(96156, 3));
addSongEvent(new NoteSustainedEvent(96838, 2, 800));
addSongEvent(new NoteStrumEvent(98213, 3));
addSongEvent(new NoteStrumEvent(98842, 4));
addSongEvent(new NoteSustainedEvent(99519, 1, 800));
addSongEvent(new NoteStrumEvent(100866, 2));
addSongEvent(new NoteStrumEvent(101561, 2));
addSongEvent(new NoteStrumEvent(102254, 3));
addSongEvent(new NoteStrumEvent(103560, 3));
addSongEvent(new NoteStrumEvent(104248, 4));
addSongEvent(new NoteSustainedEvent(104919, 5, 1000));
addSongEvent(new NoteStrumEvent(106311, 1));
addSongEvent(new NoteSustainedEvent(107611, 3, 1000));
addSongEvent(new NoteStrumEvent(108944, 1));
addSongEvent(new NoteStrumEvent(109637, 2));
addSongEvent(new NoteSustainedEvent(110298, 3, 1000));
addSongEvent(new NoteStrumEvent(111657, 2));
addSongEvent(new NoteStrumEvent(112345, 1));
addSongEvent(new NoteSustainedEvent(113049, 4, 1000));
addSongEvent(new NoteStrumEvent(114355, 2));
addSongEvent(new NoteStrumEvent(115032, 2));
addSongEvent(new NoteSustainedEvent(115714, 5, 1000));
addSongEvent(new NoteStrumEvent(117041, 1));
addSongEvent(new NoteStrumEvent(117718, 1));
addSongEvent(new NoteStrumEvent(118401, 2));
addSongEvent(new NoteStrumEvent(119760, 2));
addSongEvent(new NoteStrumEvent(120437, 3));
addSongEvent(new NoteSustainedEvent(121098, 1, 1000));
addSongEvent(new NoteSustainedEvent(122400, 2, 1000));
addSongEvent(new NoteSustainedEvent(123785, 3, 2400));
addSongEvent(new NoteSustainedEvent(126525, 1, 1000));
addSongEvent(new NoteSustainedEvent(127873, 2, 2000));
addSongEvent(new NoteSustainedEvent(129201, 4, 2000));
addSongEvent(new NoteSustainedEvent(131925, 1, 1000));
addSongEvent(new NoteSustainedEvent(133194, 4, 600));
addSongEvent(new NoteSustainedEvent(133945, 5, 500));
addSongEvent(new NoteSustainedEvent(134564, 2, 2400));
addSongEvent(new NoteSustainedEvent(137362, 2, 1000));
addSongEvent(new NoteSustainedEvent(138620, 3, 500));
addSongEvent(new NoteSustainedEvent(139287, 1, 600));
addSongEvent(new NoteSustainedEvent(139969, 2, 2400));
addSongEvent(new NoteStrumEvent(142693, 3));
addSongEvent(new NoteSustainedEvent(144004, 1, 1000));
addSongEvent(new NoteSustainedEvent(145417, 2, 1000));
addSongEvent(new NoteStrumEvent(146712, 3));
addSongEvent(new NoteSustainedEvent(149436, 1, 1000));
addSongEvent(new NoteStrumEvent(152128, 4));
addSongEvent(new NoteStrumEvent(152853, 5));
addSongEvent(new NoteSustainedEvent(153461, 1, 1000));
addSongEvent(new NoteStrumEvent(154866, 3));
addSongEvent(new NoteStrumEvent(155524, 4));
addSongEvent(new NoteSustainedEvent(156233, 1, 1000));
addSongEvent(new NoteSustainedEvent(157459, 2, 1200));
addSongEvent(new NoteSustainedEvent(158850, 1, 1000));
addSongEvent(new NoteSustainedEvent(160178, 4, 2000));
addSongEvent(new NoteStrumEvent(162886, 2));
addSongEvent(new NoteStrumEvent(163557, 1));
addSongEvent(new NoteStrumEvent(164229, 3));
addSongEvent(new NoteStrumEvent(164933, 1));
addSongEvent(new NoteSustainedEvent(165652, 2, 18000));
addSongEvent(new NoteStrumEvent(183932, 5));
}
}
}//package
Section 62
//SongEvent (SongEvent)
package {
public class SongEvent {
public var eventTime:Number;
public function setEventTime(_arg1:Number){
this.eventTime = (_arg1 - (Game.g.noteDropTime * 1000));
}
public function actions(_arg1:NoteManager){
}
}
}//package
Section 63
//SongManager (SongManager)
package {
import flash.media.*;
public class SongManager {
private var songEventList:Array;
public var game:Game;
public var soundChannel:SoundChannel;
public var song:Song;
public var songIsPlaying:Boolean;
private var index:Number;// = 0
public function SongManager(_arg1:Game){
index = 0;
super();
this.game = _arg1;
songIsPlaying = false;
}
public function playSong(){
soundChannel = song.trackName.play();
}
public function endSong(){
soundChannel.stop();
}
public function listenForSongEvents(){
var _local1:Number;
_local1 = Math.floor(soundChannel.position);
if (song.songEventList.length > 0){
if (_local1 >= song.nextSongEvent().eventTime){
song.getNextSongEvent().actions(game.noteManager);
};
};
}
public function loadSong(_arg1:Number){
if (_arg1 == 1){
song = new Song1();
} else {
if (_arg1 == 2){
song = new Song2();
} else {
if (_arg1 == 3){
song = new Song3();
} else {
if (_arg1 == 4){
song = new Song4();
} else {
if (_arg1 == 5){
song = new Song5();
};
};
};
};
};
}
public function getPosition():Number{
return (soundChannel.position);
}
}
}//package
Section 64
//StoryMusic (StoryMusic)
package {
import flash.media.*;
public class StoryMusic extends Sound {
}
}//package
Section 65
//StoryWindow (StoryWindow)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class StoryWindow extends MovieClip {
public var nextFrameButton:SimpleButton;
public var song1Button:SimpleButton;
public var moreDifficultyButton:SimpleButton;
public var lessDifficultyButton:SimpleButton;
public var song3Button:SimpleButton;
public var song5Button:SimpleButton;
public var song2Button:SimpleButton;
public var difficultyText:TextField;
public var song4Button:SimpleButton;
public function StoryWindow(_arg1:Number){
addFrameScript(0, frame1, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 23, frame24, 24, frame25, 25, frame26, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 61, frame62, 62, frame63, 63, frame64, 64, frame65, 65, frame66, 66, frame67, 75, frame76, 76, frame77, 77, frame78, 78, frame79, 79, frame80, 80, frame81, 81, frame82, 87, frame88, 88, frame89, 89, frame90, 90, frame91, 99, frame100, 100, frame101, 101, frame102, 110, frame111, 111, frame112, 112, frame113, 113, frame114, 114, frame115, 119, frame120, 120, frame121, 121, frame122, 122, frame123, 123, frame124, 124, frame125, 125, frame126, 134, frame135, 135, frame136, 136, frame137, 137, frame138, 148, frame149, 149, frame150, 150, frame151, 151, frame152, 160, frame161, 161, frame162, 162, frame163, 163, frame164, 164, frame165, 165, frame166, 174, frame175, 175, frame176, 176, frame177, 177, frame178, 182, frame183, 183, frame184, 184, frame185, 185, frame186, 186, frame187, 193, frame194, 194, frame195, 195, frame196, 202, frame203);
if (Game.g.selectedTrainer == "Satomi"){
gotoAndStop(("Satomi" + _arg1));
} else {
if (Game.g.selectedTrainer == "Bob"){
gotoAndStop(("Bob" + _arg1));
} else {
if (Game.g.selectedTrainer == "Josh"){
gotoAndStop(("Josh" + _arg1));
} else {
if (Game.g.selectedTrainer == "Drake"){
gotoAndStop(("Drake" + _arg1));
};
};
};
};
}
function frame151(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame152(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToCredits);
}
function frame162(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame163(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame164(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame165(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame161(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame166(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToChooser);
}
public function lessDifficulty(_arg1:MouseEvent){
if (Game.g.selectedSpeed == "hard"){
Game.g.selectedSpeed = "medium";
} else {
if (Game.g.selectedSpeed == "medium"){
Game.g.selectedSpeed = "easy";
};
};
difficultyText.text = Game.g.selectedSpeed;
}
public function goToChooser(_arg1:MouseEvent){
gotoAndStop("choose");
}
function frame176(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame177(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame178(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToChooser);
}
function frame10(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame183(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame184(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame185(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame186(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame187(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToChooser);
}
function frame11(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToChooser);
}
function frame5(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame6(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame7(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame1(){
}
function frame24(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame25(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame26(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToChooser);
}
function frame9(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
public function setSong2(_arg1:MouseEvent){
Game.g.selectedSongNum = 2;
startMatch();
}
public function setSong3(_arg1:MouseEvent){
Game.g.selectedSongNum = 3;
startMatch();
}
public function setSong5(_arg1:MouseEvent){
Game.g.selectedSongNum = 5;
startMatch();
}
function frame194(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame195(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
public function startMatch(){
Game.g.ged.dispatchEvent(new Event(GameEventDispatcher.START_GAME));
Game.g.gui.unloadStory();
}
public function setSong4(_arg1:MouseEvent){
Game.g.selectedSongNum = 4;
startMatch();
}
function frame37(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame175(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame8(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame38(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame39(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame196(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToCredits);
}
public function setSong1(_arg1:MouseEvent){
Game.g.selectedSongNum = 1;
startMatch();
}
function frame40(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame41(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToChooser);
}
function frame51(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame52(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame53(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame54(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToCredits);
}
function frame62(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame63(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame64(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame65(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame66(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame67(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToChooser);
}
public function moreDifficulty(_arg1:MouseEvent){
if (Game.g.selectedSpeed == "easy"){
Game.g.selectedSpeed = "medium";
} else {
if (Game.g.selectedSpeed == "medium"){
Game.g.selectedSpeed = "hard";
};
};
difficultyText.text = Game.g.selectedSpeed;
}
function frame77(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame78(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame76(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame79(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame80(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame81(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame88(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame89(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame203(){
song1Button.addEventListener(MouseEvent.CLICK, setSong1);
song2Button.addEventListener(MouseEvent.CLICK, setSong2);
song3Button.addEventListener(MouseEvent.CLICK, setSong3);
song4Button.addEventListener(MouseEvent.CLICK, setSong4);
song5Button.addEventListener(MouseEvent.CLICK, setSong5);
moreDifficultyButton.addEventListener(MouseEvent.CLICK, moreDifficulty);
lessDifficultyButton.addEventListener(MouseEvent.CLICK, lessDifficulty);
stop();
}
function frame82(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToChooser);
}
function frame90(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame91(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToChooser);
}
function frame100(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame101(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame102(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToCredits);
}
function frame111(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame112(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame114(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame113(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
public function goToCredits(_arg1:MouseEvent){
Game.g.ged.dispatchEvent(new Event(GameEventDispatcher.GO_TO_CREDITS));
}
function frame115(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToChooser);
}
function frame122(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame124(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame125(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame126(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToChooser);
}
function frame120(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame121(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame123(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame137(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame138(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToChooser);
}
function frame135(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame136(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
function frame149(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
public function goToNextFrame(_arg1:MouseEvent){
nextFrame();
}
function frame150(){
nextFrameButton.addEventListener(MouseEvent.CLICK, goToNextFrame);
}
}
}//package
Section 66
//Thor (Thor)
package {
import flash.events.*;
public class Thor extends Monster {
public function Thor(){
addFrameScript(0, frame1, 9, frame10, 14, frame15, 25, frame26, 35, frame36, 45, frame46, 55, frame56, 59, frame60);
initializeVars();
}
function frame10(){
stop();
isIntro = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame26(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame1(){
}
function frame15(){
stop();
}
function frame36(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame46(){
stop();
isStrumming = false;
monsterEventDispatcher.dispatchEvent(new Event(MonsterEventDispatcher.NEW_ANIMATION));
}
function frame56(){
stop();
}
function frame60(){
stop();
}
}
}//package
Section 67
//TitleScreen (TitleScreen)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
public dynamic class TitleScreen extends MovieClip {
public var charName:TextField;
public var joshButton:SimpleButton;
public var noteSustained:NoteSustainedPic2;
public var startButton:SimpleButton;
public var satomiButton:SimpleButton;
public var bobButton:SimpleButton;
public var mainButton:SimpleButton;
public var armorButton:SimpleButton;
public var creditsButton:SimpleButton;
public var instructionButton:SimpleButton;
public var newgroundsButton:SimpleButton;
public var drakeButton:SimpleButton;
public var letsRockButton:SimpleButton;
public var note:NotePic5;
public function TitleScreen(){
addFrameScript(0, frame1, 100, frame101, 105, frame106, 125, frame126, 138, frame139, 149, frame150, 178, frame179);
}
public function setDrake(_arg1:Event){
Game.g.selectedTrainer = "Drake";
setCharName();
}
public function goToNewgrounds(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.newgrounds.com");
navigateToURL(_local2, "_blank");
}
public function setJosh(_arg1:Event){
Game.g.selectedTrainer = "Josh";
setCharName();
}
public function goToChooser(_arg1:MouseEvent){
gotoAndPlay("choose");
}
public function goToMain(_arg1:MouseEvent){
gotoAndStop("mainStill");
}
public function setBob(_arg1:Event){
Game.g.selectedTrainer = "Bob";
setCharName();
}
function frame106(){
instructionButton.addEventListener(MouseEvent.CLICK, goToInstructions);
creditsButton.addEventListener(MouseEvent.CLICK, goToCredits);
startButton.addEventListener(MouseEvent.CLICK, goToChooser);
}
function frame1(){
}
public function fadeAndStart(_arg1:Event){
Game.g.gui.fadeOut();
Game.g.ged.addEventListener(GameEventDispatcher.FADE_OUT_COMPLETE, startGame);
}
public function goToArmor(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.armorgames.com");
navigateToURL(_local2, "_blank");
}
function frame179(){
mainButton.addEventListener(MouseEvent.CLICK, goToMain);
letsRockButton.addEventListener(MouseEvent.CLICK, fadeAndStart);
satomiButton.addEventListener(MouseEvent.CLICK, setSatomi);
joshButton.addEventListener(MouseEvent.CLICK, setJosh);
bobButton.addEventListener(MouseEvent.CLICK, setBob);
drakeButton.addEventListener(MouseEvent.CLICK, setDrake);
stop();
setCharName();
}
public function startGame(_arg1:Event){
Game.g.stopIntroMusic();
Game.g.ged.removeEventListener(GameEventDispatcher.FADE_OUT_COMPLETE, startGame);
Game.g.ged.dispatchEvent(new Event(GameEventDispatcher.LOAD_STAGE));
}
function frame101(){
Game.g.startIntroMusic();
}
public function setCharName(){
if (Game.g.selectedTrainer == "Satomi"){
charName.text = "Satomi and Broc";
} else {
if (Game.g.selectedTrainer == "Josh"){
charName.text = "Josh and Clops";
} else {
if (Game.g.selectedTrainer == "Bob"){
charName.text = "Bob and Lizardo";
} else {
if (Game.g.selectedTrainer == "Drake"){
charName.text = "Drake and Thor";
};
};
};
};
}
public function goToCredits(_arg1:MouseEvent){
gotoAndStop("credits");
}
public function setSatomi(_arg1:Event){
Game.g.selectedTrainer = "Satomi";
setCharName();
}
function frame126(){
stop();
instructionButton.addEventListener(MouseEvent.CLICK, goToInstructions);
creditsButton.addEventListener(MouseEvent.CLICK, goToCredits);
startButton.addEventListener(MouseEvent.CLICK, goToChooser);
newgroundsButton.addEventListener(MouseEvent.CLICK, goToNewgrounds);
armorButton.addEventListener(MouseEvent.CLICK, goToArmor);
}
function frame139(){
stop();
noteSustained.tail.height = 100;
noteSustained.gotoAndStop("on");
note.gotoAndStop("on");
mainButton.addEventListener(MouseEvent.CLICK, goToMain);
}
public function goToInstructions(_arg1:MouseEvent){
gotoAndStop("instructions");
}
function frame150(){
mainButton.addEventListener(MouseEvent.CLICK, goToMain);
}
}
}//package
Section 68
//Track1 (Track1)
package {
import flash.media.*;
public class Track1 extends Sound {
}
}//package
Section 69
//Track2 (Track2)
package {
import flash.media.*;
public class Track2 extends Sound {
}
}//package
Section 70
//Track3 (Track3)
package {
import flash.media.*;
public class Track3 extends Sound {
}
}//package
Section 71
//Track4 (Track4)
package {
import flash.media.*;
public class Track4 extends Sound {
}
}//package
Section 72
//Track5 (Track5)
package {
import flash.media.*;
public class Track5 extends Sound {
}
}//package
Section 73
//Track6 (Track6)
package {
import flash.media.*;
public class Track6 extends Sound {
}
}//package
Section 74
//Trainer (Trainer)
package {
import flash.display.*;
import flash.events.*;
public class Trainer extends MovieClip {
public var bgNum:Number;
public var itinerary:Array;
public var STRUM_TYPES:Number;// = 3
public var isIdle:Boolean;
public var strumNumber:Number;
public var isDefeated:Boolean;
public var isIntro:Boolean;
public var isRockingOut:Boolean;
public var trainerEventDispatcher:TrainerEventDispatcher;
public var CHEER_STREAK_NUM:Number;// = 10
public var monsterName:String;
private var trainerClip:MovieClip;
public var isCheering:Boolean;
public var isMistake:Boolean;
public var isVictorious:Boolean;
private var player:Player;
public var ROCK_OUT_STREAK_NUM:Number;// = 20
public function Trainer(){
CHEER_STREAK_NUM = 10;
ROCK_OUT_STREAK_NUM = 20;
STRUM_TYPES = 3;
super();
}
public function setTrainerClip(_arg1:MovieClip){
this.trainerClip = _arg1;
}
public function victorious(){
isVictorious = true;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
public function setPlayer(_arg1:Player){
this.player = _arg1;
}
public function initializeVars(){
isCheering = false;
isRockingOut = false;
isIdle = true;
isDefeated = false;
isVictorious = false;
isIntro = false;
isMistake = false;
strumNumber = 0;
trainerEventDispatcher = new TrainerEventDispatcher();
createEventListeners();
}
public function setBGNum(_arg1:Number){
this.bgNum = _arg1;
}
public function defeated(){
isDefeated = true;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
public function mistake(){
isMistake = true;
isRockingOut = false;
isCheering = false;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
public function cheer(){
isCheering = true;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
public function rockOut(){
isRockingOut = true;
trainerEventDispatcher.dispatchEvent(new Event(TrainerEventDispatcher.NEW_ANIMATION));
}
public function playAnimation(_arg1:String){
if (_arg1 == "cheer"){
gotoAndPlay("cheer");
} else {
if (_arg1 == "rockOut"){
gotoAndPlay("rockOut");
} else {
if (_arg1 == "mistake"){
gotoAndPlay("mistake");
} else {
if (_arg1 == "idle"){
gotoAndPlay("idle");
} else {
if (_arg1 == "defeat"){
gotoAndPlay("defeat");
} else {
if (_arg1 == "victorious"){
gotoAndPlay("victorious");
} else {
if (_arg1 == "intro"){
gotoAndPlay("intro");
};
};
};
};
};
};
};
}
public function setMonsterName(_arg1:String){
this.monsterName = _arg1;
}
public function setItinerary(_arg1:Array){
this.itinerary = _arg1;
}
public function newAnimation(_arg1:Event){
if (isVictorious){
playAnimation("victorious");
} else {
if (isDefeated){
playAnimation("defeat");
} else {
if (isIntro){
playAnimation("intro");
} else {
if (isMistake){
playAnimation("mistake");
} else {
if (isRockingOut){
playAnimation("rockOut");
} else {
if (isCheering){
playAnimation("cheer");
} else {
if (isIdle){
playAnimation("idle");
};
};
};
};
};
};
};
}
public function createEventListeners(){
trainerEventDispatcher.addEventListener(TrainerEventDispatcher.NEW_ANIMATION, newAnimation);
}
}
}//package
Section 75
//TrainerEventDispatcher (TrainerEventDispatcher)
package {
import flash.events.*;
public class TrainerEventDispatcher extends EventDispatcher {
public static var NEW_ANIMATION:String = "newAnim";
}
}//package