 		// switchType() here
 		private function listenToMp3(active:Boolean):void {
 			if(active) {
-                myMp3Player.addEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                if (debug) {
+                    myMp3Player.addEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
+                }
 
 				myMp3Player.addEventListener(JplayerEvent.JPLAYER_ERROR, jPlayerFlashEvent);
 				myMp3Player.addEventListener(JplayerEvent.JPLAYER_PROGRESS, jPlayerFlashEvent);


		private function listenToRtmp(active:Boolean):void {
			if(active) {
                myRtmpPlayer.addEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);

				myRtmpPlayer.addEventListener(JplayerEvent.JPLAYER_ERROR, jPlayerFlashEvent);
				myRtmpPlayer.addEventListener(JplayerEvent.JPLAYER_PROGRESS, jPlayerFlashEvent);

				myMp3Player.addEventListener(JplayerEvent.JPLAYER_CANPLAY, jPlayerFlashEvent); // only MP3 atm
				myMp3Player.addEventListener(JplayerEvent.JPLAYER_CANPLAYTHROUGH, jPlayerFlashEvent); // only MP3 atm
			} else {
                if (debug) {
                    myMp3Player.removeEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);
                }

				myMp3Player.removeEventListener(JplayerEvent.JPLAYER_ERROR, jPlayerFlashEvent);
				myMp3Player.removeEventListener(JplayerEvent.JPLAYER_PROGRESS, jPlayerFlashEvent);
