Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
you can assign your sound's sync property to "stream".
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now