Skip to main content
timaging
Inspiring
September 16, 2011
Question

pause and resume sound in timeline?

  • September 16, 2011
  • 1 reply
  • 3483 views

Hi,

I have a project that has an event sound (a narration) in the timeline.

I need to have buttons that pause and resume this narration, but for some reason I can't seem to find any information on it.

Everything I find online calls an external mp3 and I can't do that because of server restrictions.

I can stop all sounds, but then it doesn't resume from where I left off.

I do also have an AS Linkage name, but I can't seem to get this to pause and resume.

Any ideas would be greatly appreciated.

thanks!!

Dave

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
September 16, 2011

if you set your sounds sync to "stream" instead of "event", stopping and playing your timeline will stop and play your sound, resp.

if that doesn't work for you, remove your sound from the timeline and use the actionscript sound class to create, play and stop your sound.

timaging
timagingAuthor
Inspiring
September 16, 2011

hey there-

the problem I run in to calling the sound is that it's always external, and the server restrictions I have make it so that I have to keep the sound internal.

like this sample regarding the sound class that you mentioned:

var req:URLRequest = new URLRequest("click.mp3"); 
var s:Sound = new Sound(req); 
s.play();

I know I can just set this up on a timeline and go old school AS2, but I really like to do all my animation on one frame, and with code-mainly the Greensock plugin

so, what I need to be able to do is put the sound in as an event. I can get the sound running, but I can't seem to pause and resume it in my mouse event click states.

is there a way to do that?

thanks!!

Dave

kglad
Community Expert
Community Expert
September 16, 2011

whether your sound is internal or external or irrelevant except for the coding specifics.  whether you use as2 or as3, adding sound to the timeline is the same.

and this statement:


so, what I need to be able to do is put the sound in as an event.

is almost certainly incorrect.

so, what is it you want to do?  use actionscript or the timeline?  if actionscript, as2 or as3?