PDA

View Full Version : Replay an embedded Sound?


YYZ11
06-23-2001, 08:34 AM
I'm building a tutorial-style project. There are voice-overs associated with single keyframes which display pictures.

I would like to provide a "Replay Sound" button so users can hear the narrator again if they like.

Is there a way to tell an embedded sound to replay?

(I did figure out a way to do it with the attachsound function, but it seemed to slow down the project to attach so many sounds)

Jesse
06-24-2001, 04:57 AM
why not put your sounds in mc's and put those mcs on the keyframes the sounds are currently associated with, and mak each mc have a stop() in its last frame. then you can have a button which simple performs play() on the appropriate MC...

YYZ11
06-25-2001, 05:05 AM
Thanks Jesse.

I did as you said and I have gained the control I need over the sound files...

However, (and I can't begin to guess what I've done wrong) all 20 sounds play as soon as the first keyframe is reached.

FYI - The MovieClips are named MC1 through MC20. In each MC is the corresponding MP3 file. This project has 20 (keyframe) pages, into which were dropped the corresponding MCs (1 per keyframe). Each MC was then named, on the Instance tab, with the same name, so I can refer to it with the actionscript in the various buttons (replay sound, mute, un-mute, etc.)

Thanks in advance,
Kenny