title: Flex 4 spark Video Player how to play from currentTime
body: <p>there are 4 Videosource so that the user can switch between it with the same progress of Video.</p>
  
  <p>How can I implement this?
  The funktion <code>seek(time:duration):void</code> dosn't really work. :-(</p>
  
  <p>my Code that I use:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p>
      </p>
  
  <pre><code>&lt;fx:Script&gt;
      &lt;![CDATA[
          import mx.events.VideoEvent;
  
          import org.osmf.media.MediaPlayer;
          import org.osmf.video.CuePoint;
  
          protected function button1_clickHandler(event:MouseEvent):void
          {
              var playing:Boolean=VideoPlr.playing;
              var time:Number = VideoPlr.currentTime;
              VideoPlr.source = "http://helpexamples.com/flash/video/water.flv";
              // dosn't work this.VideoPlr.seek(VideoPlr.duration * time / 100);
              if(playing) VideoPlr.play();
          }
  
  
          protected function button2_clickHandler(event:MouseEvent):void
          {
              var playing:Boolean=VideoPlr.playing;
              var time:Number = VideoPlr.currentTime;
              VideoPlr.source = "http://helpexamples.com/flash/video/clouds.flv";
              // dosn't work this.VideoPlr.seek(VideoPlr.duration * time / 100);
  
              if(playing) VideoPlr.play();
          }
  
  
          protected function button3_clickHandler(event:MouseEvent):void
          {
              var playing:Boolean=VideoPlr.playing;
              var time:Number = VideoPlr.currentTime;
              VideoPlr.source = "http://helpexamples.com/flash/video/cuepoints.flv";
              // dosn't work this.VideoPlr.seek(VideoPlr.duration * time / 100);
              if(playing) VideoPlr.play();
          }
  
  
          protected function button4_clickHandler(event:MouseEvent):void
          {
              var playing:Boolean=VideoPlr.playing;
              var time:Number = VideoPlr.currentTime;
              //VideoPlr.source = "http://helpexamples.com/flash/video/cuepoints.flv";
              if(playing) VideoPlr.play();
          }
  
      ]]&gt;
  &lt;/fx:Script&gt;
  &lt;s:VideoPlayer x="26" y="10" height="588" width="1081" autoPlay="false" 
                 source="http://helpexamples.com/flash/video/water.flv" 
                id="VideoPlr" muted="false" pauseWhenHidden="true" 
  </code></pre>
  
  <p> </p>
  
  <p>thanking you in anticipation</p>