Skip to main content
Vincent Alim
Known Participant
August 26, 2017
Answered

[AS3] How to pause Movie Clip, Frame, and Sound at the same time?

  • August 26, 2017
  • 4 replies
  • 2785 views

Hello guys,
I have a little problem when I have to make pause and resume button for the timeline.

The file contains animations with some Movie clip (lips movement) and Sound (the character voices).

Is there any script who can make the frame stopped, movie clip stopped, and the Sound stop too?

Here is the workspace which contains the movie clips and sound.

Thanks for the help.

    This topic has been closed for replies.
    Correct answer Nick Gioia

    Try this and see if it helps. Adobe ActionScript 3.0 * Pausing and resuming a sound

    4 replies

    Vincent Alim
    Known Participant
    September 3, 2017

    I've tried and I little bit confused.
    Because my animation consists of several sources of sound (please check my timeline)

    If I use this code...

    var snd:Sound = new Sound(new URLRequest("bigSound.mp3"));  var channel:SoundChannel = snd.play();

    ...do I need to change URLRequest, every time the sound changed? Coz I have a lot of conversation and it will be taking tons of time.

    It is the only way?
    Or I have to change something first, after set the sound to stream.

    Thanks

    Colin Holgate
    Inspiring
    September 3, 2017

    Your image made it seem like you were playing timeline sounds. If you're also playing sound with code, see if this short article helps:

    Adobe ActionScript 3.0 * Pausing and resuming a sound

    Vincent Alim
    Known Participant
    September 3, 2017

    Thanks mate, but I've already tried it. I'm stuck because of I have a lot of sound sources if use that method. Just like my recent comment.

    Nick GioiaCommunity ExpertCorrect answer
    Community Expert
    August 26, 2017
    Vincent Alim
    Known Participant
    August 27, 2017

    I will check it out. Thanks friend!

    Legend
    August 26, 2017

    The reason he said to change sounds to stream is because stream sounds are locked in synch with the timeline. So if you pause the timeline, it automatically pauses the sound as well.

    If you want symbol animations to stay in synch with their parent timeline, make them graphics instead of movieclips.

    Vincent Alim
    Known Participant
    August 27, 2017

    You make RandomlyFish explanation crystal clear.
    Thanks for the help, friend.

    Inspiring
    August 26, 2017

    If you select a frame with a sound and check the properties panel, you can change the sync of the sound from Event to Stream. Now when scrubbing through the timeline you will hear different parts of the sound. If you don't want to hear that, you can click at the top where it says Control and select Mute Sounds.

    Vincent Alim
    Known Participant
    August 26, 2017

    Thanks for the help!
    The stream sync is new for me.
    I'll try