5 Replies Latest reply on Oct 29, 2012 8:20 PM by kglad

    Cant get restart and stop buttons to work on scene with movieclip and sound. (NOOB)

    jensmens

      So.

       

      Iv been trying now for hours and it wont work.

       

      I have 4 layers.

       

      ljud: The wav sound file.

       

      knappar: Buttons, restart and stop.

       

      kod: which is only AS2. The only thing in it is stop();

       

      fyrverkeri: which has the movieclip on it. 3 instances of it, named fire, fire1, fire2.

       

       

      Code for the restart button:

      on (release) {

      gotoAndPlay(1);

       

      }

       

      Code for the stop button:

      on (release) {

                stopAllSounds();

                stop();

      fire.stop();

      fire1.stop();

      fire2.stop();

      }

       

       

      It wont work correctly. What have I done wrong?

      I will upload 2 screens for you as well.

       

      At the moment it wont go back to frame 1. It starts playing at the last MC instance instead.

      Other problems iv had is that it wont play the sound but restarts the mc.

       

       

      Thank you in advance!

       

       

      cap1.jpg

      cap2.jpg

      cap3.jpg