2 Replies Latest reply on Oct 27, 2006 2:55 AM by Ankur Arora

    I have created a stop button to stop a audio file

    shallowdeep
      This is the action script that I have created

      musicbutt.onRollOver=function(){
      musicmc._visible = true;
      musicmc.gotoAndPlay(1);
      if(!musicmc.alreadyPlayed){ // use a movieclip button
      musicmc.alreadyPlayed=1;
      this.s=new Sound(yoda);
      this.s.attachSound("yoda"); // create a linkage id for the library sound associated with this button
      this.s.start();
      }
      }

      I also have a button called stopbuttbutton. I want this stop button to stop the audio file yoda. However being new to actionscript I aint sure what actionscript I require.