开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜