 import flash.events.ProgressEvent;
 import flash.geom.Rectangle;
 
-import spark.components.supportClasses.SkinnableComponent;
-import spark.components.supportClasses.Range;
+import mx.core.IVisualElementContainer;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.events.SandboxMouseEvent;
+import mx.utils.BitFlagUtil;
+
+import spark.components.supportClasses.ButtonBase;
+import spark.components.supportClasses.Range;
+import spark.components.supportClasses.SkinnableComponent;
+import spark.events.TrackBaseEvent;
+import spark.events.VideoEvent;
 import spark.primitives.VideoElement;
 import spark.primitives.supportClasses.TextGraphicElement;
-import mx.utils.BitFlagUtil;
-
-import spark.events.VideoEvent;
 
 //--------------------------------------
 //  Events

        videoElement.stop();
    }
    
    //--------------------------------------------------------------------------
    //
    //  Event handlers
    //
    //--------------------------------------------------------------------------
    
    /**
     *  @private
     */
    private function videoElement_completeHandler(event:spark.events.VideoEvent):void
    {
        if (totalTimeLabel)
            totalTimeLabel.text = videoElement.totalTime.toString();
        
        dispatchEvent(event);
    }
    
    /**
     *  @private
     */
    private function videoElement_metaDataReceivedHandler(event:spark.events.VideoEvent):void
    {
        if (scrubBar)
        {
            scrubBar.minimum = 0;
            scrubBar.maximum = videoElement.totalTime;
            scrubBar.value = videoElement.playheadTime;
        }
        
        if (totalTimeLabel)
            totalTimeLabel.text = videoElement.totalTime.toString();
        
        dispatchEvent(event);
    }

     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public var stopButton:ButtonBase;
    
    [SkinPart(required="false")]
    
