package{
	import flash.display.*;
	import flash.events.*;
	import flash.media.*;
	
	public class MenuMc extends MovieClip{
		private var sound_channel:SoundChannel;
		
		public function PlayMusic():void {
			sound_channel = new menuTheme().play(0,10);
		}
		
		function onStartClick(e:MouseEvent):void{
			(parent as Main).startNewGame();
			if(sound_channel != null){
				sound_channel.stop();
			}
		}
		
		function MenuMc(){
			StartButton.addEventListener(MouseEvent.CLICK, onStartClick);			
		}
	}
}