Looping different sound files in flash

Posted on 2003-02-19
Medium Priority
Last Modified: 2010-04-03
I have 15 samples ranging from .4 sec to 26 seconds.
I have put them all in the timeline some of them looping. transitions are smooth in winamp, but in flash everything is screwed up. for some reason working with the onSoundCompleted  doesn't do the job ( when i tried that i did not play them from the timeline rather creating soundobjects) but i don't know what to do know. all sounds are event triggered and sync is given because of a relatively very small (200 kb for 2 minutes) silent streamsound but still i can't position the sounds exactely right. I tried to "draw" it

*-/\-Sound1-/\                       *-/\Sound3-/

these are 3 layers
* = keyframe
-/\-/\= the sound
as soon as one file stops the other continues (no pauze, no overlap)
sound 1 is a soud file of .4 sec which is looped 29 times
sound 2 is a sound file of 3 sec which is played once
sound 3 is a soud file of .4 sec which is looped 13 times
all sound files have the same bpm and all contain the beat so if they are offset it is noticed immediately.

Question by:Tomekoreo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

henryww earned 600 total points
ID: 7983522
i wonder why the onSoundComplete didn't work!

//this is what i tested on my computer with flash mx

//frame 1 - get all sound from the library
s1 = new Sound();
s2 = new Sound();
s3 = new Sound();
s1.onSoundComplete = function() {

s2.onSoundComplete = function() {

// some frames later - (my text frame 20)
// when the movie plays

// well ... it works ok for me ...
// but i don't have any movie playing ...
// maybe that's why!!!


Expert Comment

ID: 9304361
hello Tomekoreo.

do u still need help in this issue, i can help u if u would like.
just specify ur erros plzz


Author Comment

ID: 10609859
it's easier to give the points than to close the question

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question