Hi all,

I have a slider thumb and would like to controll the playheadTime of a 
VideoDisplay with it. I therefore use this code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; width="340" 
height="300">

    <!-- video display -->
    <!-- important, video sends the thumb position on progress event -->
    <mx:VideoDisplay x="10" y="10" width="320" height="240" 
id="videoShow" source="http://www.online-editor.ch/flex/welcome.flv";
        autoPlay="false" maintainAspectRatio="true" autoRewind="false" 
playheadUpdateInterval="250" bufferTime="5"
        progress="playheadSlider.value = videoShow.playheadTime" 
progressInterval="250" />
        
     <!-- playhead scrubber, can we add the scrubber function here ?? -->
     <mx:HSlider x="10" y="270" width="320" id="playheadSlider" 
allowTrackClick="true" maximum="{videoShow.totalTime}" minimum="0"
         enabled="true" value="{videoShow.playheadTime}" 
thumbDrag="videoShow.playheadTime = playheadSlider.value" />


<!--      <mx:HSlider x="10" y="270" width="320" id="playheadSlider" 
allowTrackClick="true" maximum="{videoShow.totalTime}" minimum="0"
         enabled="true" thumbDrag="playheadSlider.value = 
videoShow.playheadTime" value="{videoShow.playheadTime}"
         change="videoShow.playheadTime = 
Math.round(playheadSlider.value)"/> -->
</mx:Canvas>


Now, what happens is, that the slider thumb changes his position 
according to the playheadTime of the video. But when I drag the slider 
thumb with the mouse (and therefore fire the thumbDrag Event), the thumb 
jumps back to the playheadTime position. I think, this is so, because 
the progressInterval is set to 250 miliseconds and overrules the 
thumbDrag Event.
Can I somehow override the progress Event, so that when I drag the 
slider thumb, the playheadTime is adjusted?

Thanks a lot for your answer and best regards,


Pascal


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to