         }
         else if (instance == totalTimeLabel)
         {
-            if (totalTimeLabel)
+            if (videoElement)
                 updateTotalTime();
         }
     }

        if (scrubBarMouseCaptured)
        {
            videoElement.mx_internal::videoPlayer.flvplayback_internal::flushQueuedCmds();
            seek(scrubBar.value);
        }
        else
        {
            scrubBarChanging = false;
            seek(scrubBar.value);
        }
    }
}
}
[Event(name="ready", type="spark.events.VideoEvent")]

//--------------------------------------
//  Styles
//--------------------------------------

include "../styles/metadata/BasicTextLayoutFormatStyles.as";
    
/**
 *  The time, in milli-seconds, to wait in fullscreen mode with no user-interaction 
 *  before hiding the video playback controls.
 *  
 *  @default 3000
 * 
 *  @langversion 3.0
 *  @playerversion Flash 10
 *  @playerversion AIR 1.5
 *  @productversion Flex 4
 */
[Style(name="fullScreenHideControlsDelay", type="Number", inherit="no")]

/**
 *  @copy spark.components.supportClasses.GroupBase#style:symbolColor
 *  
 *  @langversion 3.0
 *  @playerversion Flash 10
 *  @playerversion AIR 1.5
 *  @productversion Flex 4
 */ 
[Style(name="symbolColor", type="uint", format="Color", inherit="yes", theme="spark")]

//--------------------------------------
//  SkinStates
//--------------------------------------

