1 Reply Latest reply on Dec 7, 2009 3:23 PM by kglad

    onSoundComplete will not go to key frame

    raylaur Level 1

      I have this script in a movie clip.  It should go to the keyframe shown after sound completes, but it doesn't and I'm wasting too much time trying to figure it out.  Any help is welcomed.

       

      FYI - the sound does play and the trace does appear. It just won't go to the frame I want.

       

      //script***********************************************

      applause= new Sound();

      applause.attachSound("applause2.mp3");

       

      applause.onSoundComplete = function() {
          gotoAndPlay("theEnd");
          trace("app2 is complete");
      };
      applause.start();