A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: stopAllSounds not working

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    19

    stopAllSounds not working

    I've got a main timeline with a movie clip on one frame that plays a sound in it, then jumps to another frame on the main timeline where another movie clip plays. I want my sound to continue playing until the end of the timeline in the second movieclip.

    The first movieclip contains the sound, then on the last frame of the movieclip I have this:

    _root.main.gotoAndStop ("atRC");

    When the movieclip on frame "atRC" plays, I have this on the last frame:

    stopAllSounds();
    _root.main.gotoAndStop("RCMinistries");

    Then back on the main timeline on frame "RCMinistries", I just have:

    stop();

    For some reason as soon as it gets to the part where it stops on "RCMinistries", it plays my sound again... I don't get it. I can't find any other instances of the sound on that frame. Maybe it's hiding somewhere? If I put stopAllSounds on that frame, it will stop the sounds but it plays a split second of it first and won't stop it from playing completely.



    Help please! I've spent hours trying to research what I'm doing wrong...

    Katie

  2. #2
    Junior Member
    Join Date
    May 2008
    Posts
    19
    No one has any suggestions? Is there a way to see a list of where in your movie all the instances of one library item are located? I wonder if the sound got put in there somewhere twice by accident...

    Should I post anything further that would help?

  3. #3
    Senior Member
    Join Date
    Nov 2004
    Posts
    928
    could it be that the "first movieClip" that contains the sound is starting to play again? is there a stop() at the end of it or is the main timeline looping so that the play head comes round to the "first movieClip" again and starts it again?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center