Hi there,
I have a VideoDisplay which plays a list of flv. As soon as a clip is
finished playing, it plays the next one. This part works fine.
I added a volume control using a HSlider component. This also works
fine. When I slide the slider (oh yeah), the volume changes accordingly.
But this is the strange part. If I change the volume to 0 while a clip
is playing, the next clip volume will automatically return to 0.75
(default value). So I thought after each clip has started playing, I
should set the volume to what the slider is set. But the problem is
the VideoDisplay volume doesn't change when the next clip is played. I
traced its volume property, and even if it is set to 0 (and the trace
shows 0), I can HEAR the volume come back to 0.75 at each next song.
Does anybody know what's happening here ?
The VideoDisplay component:
<mx:VideoDisplay id="pubs" height="150" width="100%" autoPlay="true"
complete="showNextPub(new TimerEvent(TimerEvent.TIMER))"
ready="pubs.volume = volumeControl.value / 100;" />
The HSlider component:
<mx:HSlider id="volumeControl" width="80%" x="35" liveDragging="true"
minimum="0" maximum="100" dataTipFormatFunction="volumeTipFormatter"
labelStyleName="time" labelOffset="0" labels="['0%', '50%', '100%']"
snapInterval="1" value="{pubs.volume*100}"
change="pubs.volume=event.value/100" />
Thanks,
Benjamin.
--
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/