0
在下面的代碼如何可以在進度條被安裝於音,並指出它的進展附加進度
<mx:Script>
<![CDATA[
import flash.media.*;
import flash.net.NetStream;
[Embed(source="new1.mp3")]
[Bindable]
public var sndCls:Class;
public var snd:Sound = new sndCls() as Sound;
public var sndChannel:SoundChannel;
private var recordingState:String = "idle";
public function playSound():void {
sndChannel=snd.play();
}
public function stopSound():void {
sndChannel.stop();
}
]]>
</mx:Script>
<mx:Button label="Play" click="playSound()" />
<mx:ProgressBar x="30" y="36" mode="manual" id="audioprogress" label=""
labelPlacement="bottom" width="220" fontSize="10"
fontWeight="normal"/>
</mx:Application>
由於它的工作,所以如果歌曲再次播放如何重置初始化進度條再次.. – Rajeev 2011-02-02 17:57:44