Skip to main content
Aug 17, 2006 10:24 PM UTC
Answered

Stop and Play sound

Hi all

I need to be able to stop and play a flash slide show with an mp3 voice over. The stop button works fine, but once I push play, only the slide show continues. I need to keep the voice and images synchronized.

Any advice is appreciated.

Thanks
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer
Aug 17, 2006 11:30 PM UTC
The first solution fixed the problem for me. Thank you.

The second solution sounds like something I would like to look into more. Any recommended places to learn about sound objects?

3 replies

Inspiring
Aug 17, 2006 10:55 PM UTC
spacetony,

> I need to be able to stop and play a flash slide show
> with an mp3 voice over. The stop button works fine,
> but once I push play, only the slide show continues.

Are you including this sound programmatically, or did you drag-and-drop
it to the timeline?

> I need to keep the voice and images synchronized.

It sounds like your stop button stops the timeline itself. Since you're
posting to the ActionScript forum, I'm guessing you want an ActionScript
solution, but maybe not, so I'll suggest two ways. :)

1) My guess is that you dragged-and-dropped the audio to the timeline.
When you did, you set the Sync option in the Property inspector to Event.
When audio is in this Sync mode, it gets loaded into memory as a whole when
its frame is entered. If you stop the timeline, the audio continues until
its done. If you resume the timeline after the audio's first frame, the
audio will not resume.

If this is what you're doing, make sure to set the audio's Sync mode to
Stream. If you don't, your audio is likely not to synchronize anyway,
because of differences in people's processor speeds, amount of memory, and
so on. If you set Sync mode to Stream, your audio will actually be
synchronized and will resume when the timeline does.

2) Forego the timeline altogether and use the Sound class to instantiate
a sound object, which you can control with ActionScript.


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."


Translate
Correct answer
Aug 17, 2006 11:30 PM UTC
The first solution fixed the problem for me. Thank you.

The second solution sounds like something I would like to look into more. Any recommended places to learn about sound objects?

Translate