Flash实例教程:通过声音对象的控制来制作播放器

  var mymp3:Sound=new Sound();

  mymp3.load(new URLRequest("sound.mp3"));

  var music:SoundChannel=mymp3.play();

  stopBt.addEventListener(MouseEvent.CLICK,clickStop);

  playBt.addEventListener(MouseEvent.CLICK,clickPlay);

  function clickStop(event:MouseEvent):void{

  music.stop()

  _show.stop()

  }

  function clickPlay(event:MouseEvent):void{

  music=mymp3.play()

  _show.play()

  }