class initializeDisplay { //var definitions private var songList = new Array(); private var hasInitialized:String; private var bgColor:String; private var buttonBGColor:String; private var buttonBuffer:Number; private var currentSongButton:String; private var buttonBGColor_over:String; private var buttonTextColor:Number; private var buttonTextSize:Number; private var menuButtonBGColor:String; private var menuButtonBGColor_over:String; private var menuButtonTextColor:Number; private var menuButtonTextSize:Number; //constructor function initializeDisplay(songsForList:Array) { //this will be the color of the movie's background. //change this to change the background color. this.bgColor = "0x660000"; //this will be the color of all the buttons' background. //change this to change their background colors. this.buttonBGColor = "0x330000"; //this will be the color of all the buttons' background //when the button is hovered over with the mouse. //change this to change the color this.buttonBGColor_over = "0xFF0000"; //this will be the color of all the buttons' text color //change this to change their text colors. this.buttonTextColor = 0xFFFAFA; //this will be the sizer of all the buttons' text //change this to change the size of their text. this.buttonTextSize = 20; //the buffer will increase the space between buttons this.buttonBuffer = 10; //this just signals that a new object has been created this.hasInitialized = "yes"; //copying the passed array into the class' array this.songList = songsForList; //changing this hex value will change the background color of the menu buttons this.menuButtonBGColor = "0x330000"; //changing this hex value will change the hover background color of the menu buttons this.menuButtonBGColor_over = "0xFF0000"; //changing this hex value will change the text color of the menu buttons this.menuButtonTextColor = 0xFFFAFA; //changing this value will change the text size of the menu buttons this.menuButtonTextSize = 20; } //function to get the background color to be used for the buttons function getButtonBGColor():String { return this.buttonBGColor; } //function to get the background color to be used for the stage's background function getBGColor():String { return this.bgColor; } //function for checking to see if the initializeMusic Object has been created //this is set as a string since it will automatically return "undefined" if it //has not yet been created. function getInitializedStatus():String { return this.hasInitialized; } //return the button buffer number function getButtonBuffer():Number { return this.buttonBuffer; } //function for setting current song button function setCurrentSongButton(theCurrentSongButton:String):Void { this.currentSongButton = theCurrentSongButton; } //function for getting current song button function getCurrentSongButton():String { return this.currentSongButton; } //function for getting the button's background color when hovered over function getButtonBGColor_over():String { return this.buttonBGColor_over; } //function for getting the button's text color function getButtonTextColor():Number { return this.buttonTextColor; } //function for getting the button's text size function getButtonTextSize():Number { return this.buttonTextSize; } //function for getting the menu button's background color function getMenuButtonBGColor():String { return this.menuButtonBGColor; } //function for getting the menu button's background color when hovered over function getMenuButtonBGColor_over():String { return this.menuButtonBGColor_over; } //function for getting the menu button's text size function getMenuButtonTextSize():Number { return this.menuButtonTextSize; } //function for getting the menu button's text color function getMenuButtonTextColor():Number { return this.menuButtonTextColor; } }