A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: A little delay before loop again?

  1. #1

    A little delay before loop again?

    I would like to have the sound clip delay for a little bit before looping again, is there any way to archive this in ActionScipt besides actually editing the file and add silence?

    Also, for the Soundplay paramenter, is there a number that stands for loop forever?

    Thank you in advance!

  2. #2
    Junior Member
    Join Date
    Oct 2004
    Posts
    26
    I don't know about delays, but loop forever do this

    mySound.play (0, 10000)

    It sets your loop number to 10000... the illusion of infinite

  3. #3
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    to my knowledge there is no direct way to have delay sound playback by a precise amount.

    You can repeat a sound by placing it on the timeline and using gotoAndPlay() to repeatedly call the frame. This should introduce a delay, but the amount will probably vary each loop.

  4. #4
    Thanks guys, I guess I'll just have to lengthen the sound clip!

    BTW - What's a good sound editor for the job? It's a mp3 file.

  5. #5
    Musician/Composer
    Join Date
    Oct 2004
    Location
    earth
    Posts
    42
    Any audio editor that will export the mp3 format will do. Sound Forge, Wavelab, I'm sure there are even freeware programs out there that will do that as well. Try looking here: http://www.hitsquad.com/smm/

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