add pause in this code....help!!!!
hi everybody!!!
i'm writing code for up and down speed of song....
for play of song i write this code:
public function playMC(evt:MouseEvent😞void
{
target= new ByteArray();
var url:URLRequest = new URLRequest("C://song.mp3");
mp3Start = new Sound();
mp3Start.addEventListener(Event.COMPLETE, complete);
mp3Start.load(url);
position = 0.0;
rate = 1.0;
sound = new Sound();
sound.addEventListener(SampleDataEvent.SAMPLE_DATA, sampleData);
}
public function complete(event:Event😞void
{
channel = sound.play();
}
this code is good for only play and stop song....i want add pause song....how to do??
help me please!!!!
