Index: trunk/fl5/src/com/longtailvideo/jwplayer/view/components/ControlbarComponentV4.as
===================================================================
--- trunk/fl5/src/com/longtailvideo/jwplayer/view/components/ControlbarComponentV4.as	(revision 609)
+++ trunk/fl5/src/com/longtailvideo/jwplayer/view/components/ControlbarComponentV4.as	(revision 612)
@@ -142,5 +142,4 @@
 		}
 
-
 		public function resize(width:Number, height:Number):void {
 			if (!(PlayerLayoutManager.testPosition(controlbarConfig['position']) || controlbarConfig['position'] == "over")) {
@@ -222,5 +221,5 @@
 					stage.addEventListener(MouseEvent.MOUSE_UP, upHandler);
 				} else {
-					scrubber = undefined;
+					scrubber = null;
 				}
 			}
@@ -242,23 +241,4 @@
 			fixTime();
 		}
-
-
-		/** Show above controlbar on mousemove. **/
-		private function moveHandler(evt:MouseEvent=null):void {
-			if (alpha == 0) {
-				animations.fade(1);
-			}
-			clearTimeout(hiding);
-			hiding = setTimeout(moveTimeout, 2000);
-			Mouse.show();
-		}
-
-
-		/** Hide above controlbar again when move has timed out. **/
-		private function moveTimeout():void {
-			animations.fade(0);
-			Mouse.hide();
-		}
-
 
 		/** Show a mute icon if playing. **/
@@ -376,4 +356,5 @@
 		}
 
+		
 		private function startFader():void {
 			if (controlbarConfig['position'] == 'over' || (_player.fullscreen && controlbarConfig['position'] != 'none')) {
@@ -396,12 +377,27 @@
 			animations.fade(1);
 		}
-
+		
+		/** Show above controlbar on mousemove. **/
+		private function moveHandler(evt:MouseEvent=null):void {
+			if (alpha == 0) {
+				animations.fade(1);
+			}
+			clearTimeout(hiding);
+			hiding = setTimeout(moveTimeout, 2000);
+			Mouse.show();
+		}
+		
+		
+		/** Hide above controlbar again when move has timed out. **/
+		private function moveTimeout():void {
+			animations.fade(0);
+			Mouse.hide();
+		}
+		
 		/** Process state changes **/
-		private function stateHandler(evt:PlayerEvent=undefined):void {
+		private function stateHandler(evt:PlayerEvent=null):void {
 			// TODO: Fix non-working fading
 			clearTimeout(hiding);
 			try {
-				var dps:String = stage['displayState'];
-
 				switch (_player.state) {
 					case PlayerState.PLAYING:
@@ -531,5 +527,5 @@
 			}
 			var pct:Number = (scrubber.icon.x - scrubber.rail.x) / (scrubber.rail.width - scrubber.icon.width) * mpl;
-			scrubber = undefined;
+			scrubber = null;
 			if (sliderType == 'volumeSlider') {
 				var volumeEvent:MediaEvent = new MediaEvent(MediaEvent.JWPLAYER_MEDIA_VOLUME);
