      */
     private function videoElement_playHeadUpdateHandler(event:spark.events.VideoEvent):void
     {
-        updateScrubBar();
+        if (scrubBar)
+            updateScrubBar();
         
         if (playheadTimeLabel)
             updatePlayheadTime();

 */
public class VideoPlayer extends SkinnableComponent
{
    //--------------------------------------------------------------------------
    //
    //  Class constants

            beforeFullScreenY = this.y;
            includeInLayout = false;
            setLayoutBoundsSize(stage.fullScreenWidth, stage.fullScreenHeight);
            LayoutManager.getInstance().validateNow();
            
            var newLocation:Point = parent.globalToLocal(new Point((-2*width), (-2*height)));
            this.x = newLocation.x;
            this.y = newLocation.y;
            
            // this is for video performance reasons
            videoElement.mx_internal::videoPlayer.smoothing = false;
