             }
             else
             {
+                if (sourceLastPlayed != null)
+                {
+                    videoPlayer.close();
+                    videoPlayer.clear();
+                }
+                
                 sourceString = String(this.source);
                 sourceLastPlayed = sourceString;
             }

     */
    mx_internal var videoPlayer:VideoPlayer;
    
    //--------------------------------------------------------------------------
    //
    //  Overridden properties

    public function set autoRewind(value:Boolean):void
    {
        mx_internal::videoPlayer.autoRewind = value;
    }
    
    //----------------------------------
    //  enabled
    //----------------------------------

    /**
     *  @private
     */
    private var _enabled:Boolean = true;

    [Inspectable(category="General", enumeration="true,false", defaultValue="true")]
    [Bindable("enabledChanged")]

    /**
     *  @copy mx.core.IUIComponent#enabled
     * 
     *  <p>Setting enabled to <code>false</code> 
     *  pauses the video if it was currently playing.  Re-enabling the component
     *  does not cause the video to continue playing again; you must 
     *  explicitly call <code>play()</code>.</p>
     * 
     *  <p>Even though the component is initially paused while disabled, 
     *  if you would like to play the video or perform some other action 
     *  while disabled, you may still do so through method calls, like 
     *  <code>play()</code>.</p>
     *  
     *  @langversion 3.0
     *  @playerversion Flash 9
     *  @playerversion AIR 1.1
     *  @productversion Flex 4
     */
    public function get enabled():Boolean
    {
        return _enabled;
    }

    /**
     *  @private
     */
    public function set enabled(value:Boolean):void
    {
        if (value == _enabled)
            return;
        
        _enabled = value;
        
        if (!value)
        {
            if (playing)
                pause();
        }
        
        dispatchEvent(new Event("enabledChanged"));
    }
        
    //----------------------------------
