Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sound 1

Status
Not open for further replies.

toughGirl

MIS
Mar 26, 2001
68
I'm converting a PPT presentation into Flash. I have 2 questions regarding sound. First, is there a way to tell how many frames long the sound will go? Second, is there a way to stop the animation for a given period of time (eg: as long as a sound clip) then restart it again? Or would I have to stretch the layers to accomodate the sound length?

Thank you! tG
--{-{@
 
If the sound is an event sound, it will play to it's end no matter how many frames you set it on. I would recommend setting your sound to stream, with which you can then determine the duration of the sound in terms of frames. Lay the sound on the first frame of it's own layer, and press F5 until the modulation becomes a straight line, indicating the end of the sound.
As for stopping the animation, if your talking of the main movie, you can stop it, but if the sound is not in it's own movie clip, stopping the main movie will also stop the sound.
So your sound should thus be in a movie clip, which will play regardless of the main movie, but can also control it.

Create a new movie clip, insert your sound on a layer, and add an actions layer. On the first keyframe of your actions layer set the following:

_root.stop();

On the ending keyframe, add this:

_root.play();

Thus, the main movie will play till it reaches the frame where lies the sound movie clip. The sound will start playing and at the same time will stop the main movie. When the sound is finished playing, it will then tell the main movie to start playing again.

Regards,
new.gif
 
ok! that worked great. But for some reason, when i put in more than one sound file... the first one will start playing OVER the second one.. but right on cue with the second one too. It is strange. I have both of them in movie clips and set to 'stream' in both the movie clip and in the main scene. but the first one still chimes in when the second starts..? Can you help? tG
--{-{@
 
Don't quite understand what you're saying.
Can you e-mail me an example (2 sounds) .fla at tektiper@hotmail.com

Regards,
new.gif
 
Simple solution!
You have unfortunately copied your a1wav sound inside your a2wav clip. Just edit your a2wav clip removing this duplication, and everything will work fine!

Regards,
And might I be blessed with your vote!
new.gif
 
WOW, i feel stupid!! aahahahaa. thanks tons. like always, you rock! tG
--{-{@
 
I rock... But obviously not enough to get your vote!

Until next time...
Regards,
new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top