A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Need help connecting two sound events

  1. #1
    Junior Member
    Join Date
    May 2000
    Posts
    4

    Question

    I have two sound files that are meant to be played together. The end of the first sound file leads into the beginning of the second sound file. What I would like to do is loop the first sound file 4 times and then when it is done, have it send a message to the second sound file to start playing. Is this possible?

    Thanks,
    Ryan

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092

    Smile

    the audio file has no way of sending a message to the other.
    Now movie clips as well as the main time line can communicate with each other.

    It's easy to play a sound file 1 time and then have it play the next audio file
    but when you start looping it get's more complicated.


    1 thing you could do is
    put the first song in a movie clip
    and set it to Stream
    and loop it 4 times then add a key frame at the end and add in the next song so that it chains them together.


    You will have to experiment with it till you get the timing right.


  3. #3
    Junior Member
    Join Date
    May 2000
    Posts
    4

    Post

    thanks, i sure wish there was an easier way to do this, i'll try it out and let you know how it goes, another thing that i would like to do is to go back to the first audio file after X loops, not sure if this is possible with the above mentioned method

    i have been reading the archives here and many people have talked about how insufficient the sound features are in Flash and i couldn't agree more, hopefully macromedia is beefing up the audio portion of the next release of Flash

    [This message has been edited by RyanP (edited 29 May 2000).]

  4. #4
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092

    Smile


    if you had a animation that was 400 frames
    in order to get a perfect fit the music would have to be 400 frames long.

    if your frame rate was set to 24 frames a second

    that would =16.6 seconds of animaton (400)frames
    so the song would have to be 16.6 seconds long

    now what allmost everyone is doing is using
    1-5 second music loops.

    say you had a music loop that was 3.7 seconds long
    and your animation was 400 frames long

    you could loop the song 4 times which would
    only equal = 14.8
    which is not enough 14.8-16.6=1.8
    so you would end up with a 1.8 second gap.

    if you loop it 5 time you get 18.5
    which is 1.9 over.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center