A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Sound Finished

  1. #1
    Junior Member
    Join Date
    Nov 2001
    Posts
    13

    Cool

    Could somebody please tell me the code for having the player wait on a frame until a particular sound file has finished playing before proceeding to the next frame?
    Thanks

  2. #2
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890

    Sound isn't an interactive object !!!

    The only way to solve your problem is to measure (with other utility) the sound length and insert some frames after the keyframe that starts the sound.
    Pay attention at the movie speed in order to calculate the number of added frames!

  3. #3
    Junior Member
    Join Date
    Nov 2001
    Posts
    13
    Thanks,
    The sound files are audio narrations of different lengths. I guess that I could make each audio chunk into a swf file and load them in. That way I could check if the last frame of the swf has been reached yet and then stop looping. Any other ideas?

  4. #4
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    Either script it like you intend or simply look at the length of the sound and then add enough tweens by looking at the sound and actions view to get it to time right.

    Either method will work.


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