Actionscript - Update slider position dynamically
I have a slider contro开发者_JS百科l that I need to update based on the time of the song. How do I move the slider cursor over dynamically?
I tried this and it didn't update:
sldAudioPosition.value = channel.position;
Which AS version are you using.
With your slider you need to set a maximum value as well. Without a maximum value there's no way that the slider knows where it should be. Set your maximum value to the song length, then the code your using at the moment should work.
Depending on the AS version you may have to update the stage afterwards as well.
精彩评论