 		// 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);


				myMp4Player.addEventListener(JplayerEvent.JPLAYER_LOADEDMETADATA, jPlayerMetaDataHandler); // Note the unique handler
			} else {
                myMp4Player.removeEventListener(JplayerEvent.DEBUG_MSG, jPlayerFlashEvent);

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

		private var contextMenuFix:Sprite = new Sprite(); // A sprite that will be on top and fix the content menu over video bug. (A Flash plugin bug.)

		private var txLog:TextField;
		private var debug:Boolean = false; // Set debug to false for release compile!
		private var localAIRDebug:Boolean = false; // This is autodetermined by AIR app - leave false!

		private var traceOut:TraceOut;
