3 Replies Latest reply on Apr 25, 2008 11:33 AM by kglad

    stop one audio clip and start another when btn clicked

    eapre
      Hi,
      I have an audio clip that plays, and I want the audio clip to stop and another one to play when the user clicks on a button. The button launches a popup window that's a movieclip (pop_mc. They click the exit_btn within the pop_mc and the audio for that popup stops. This should be fairly simple? Thanks for any help! Here is what I have so far:

      //audio
      x.attachSound("Section1_pg6");
      x.start(0, 0);
      musicplay = true;

      //code for the button that launches the new sound and the movieclip
      on (release) {
      if (_root.pop_mc._visible==true) {
      setProperty("_root.pop_mc", _visible, false);
      } else {
      setProperty("_root.pop_mc", _visible, true);
      }
      }

      //exit button code within pop_mc
      on (release) {
      if (_root.pop_mc._visible==true) {
      setProperty("_root.pop_mc", _visible, false);
      } else {
      setProperty("_root.pop_mc", _visible, true);
      }
      }