Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to stop overlapping sound?

Community Beginner ,
Apr 04, 2011 Apr 04, 2011

I wanted to know how to write As3 so that the sound that I place on a timeline doesn't overlap? Or is it best off the timeline?

I've tried putting each song into it's own place on the timeline but there are labels and when a new song plays, the old one continues. If I just have one song on the entire timeline, whenever I move across different labels, the song overlaps.

So, how can I fix this problem? Any help would be greatly appreciated.

TOPICS
ActionScript
3.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 04, 2011 Apr 04, 2011

you can assign your sound's sync property to "stream".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 05, 2011 Apr 05, 2011

Hi,

I just tried it. I don't hear anything. I hear it on Event, but not Stream. I've tried it on both the main timeline, and inside the movieclip on stream- nothing unfortunately.

What's the difference between Stream and Event? Any other idea as to what the problem may be?


Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 05, 2011 Apr 05, 2011

stream sound is linked to the timeline.  if the timeline stops, the sound stops.  if the timeline continues after stopping, the sound continues.

event sound plays from beginning to end once it starts no matter what the timeline does.

you won't hear streaming sounds on nested movieclip timelines in the ide because movieclip timelines don't play in the ide.  you must test in a flash player (usually the test environment - ctrl-enter).

if you have allocated only one frame for a streaming sound, you won't hear much.  you must allocate enough frames for your sound to complete (if that's what you want).  if you only want to play 1/2 the sound, don't extend the sound beyond 1/2 way.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 05, 2011 Apr 05, 2011
LATEST

Ah, so stream wouldn't work then because I have one timeline broken up into keyframes/labels. I want each keyframe to have

it's own song as long as the person stays within that keyframe. And if they move elsewhere, that song stops, and the one assigned to the new keyframe starts.

I'm assuming I'm going to have to turn it into actionscript somehow because attaching multiple sounds to a timeline isn't working without overlapping.

Thank you for your time. I'll continue to mess with it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines