3 Replies Latest reply on Aug 12, 2015 2:04 PM by kglad

    something wrong with the sound?

    Otakudbz

      I am using this code in As 3.0 in a game I'm making.

       

      var mysound3:Sound = new TDFW();

      var your_sc2:SoundChannel = new SoundChannel

      var alreadyStarted2:Boolean;

      if(!alreadyStarted2)

      {

           alreadyStarted=true;

           mysound3.play();

      }

      your_sc2.stop()

       

      Like you see, I want the sound to enter in a frame and stop in the next one.

      But it isn't working, the sound repeats forever when I go to the next frame.

      The strange thing is, I used the same code in a previous frame but used different vars and it worked! What is happening???