A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Simple Sound Loop Command??!?!

  1. #1

    Simple Sound Loop Command??!?!



    Easy question for someone. In the first frame of my movie I do the following with AS:

    mySounda0 = new Sound();
    mySounda0.loadSound("media/mp3/a0.mp3", true);

    This, of course, initializes the sound and starts it streaming. My question is this:

    How do I make it loop when it is finished, say 6 times? The startsound command has a loop parameter but I'm not using it...
    Cheers,

    Michael C. Richards
    Editor@BoldBikes.com

    Only a motorcyclist understands why a dog sticks its head out the window...

  2. #2
    Senior Member vevmesteren's Avatar
    Join Date
    Sep 2001
    Location
    Montréal, Québec
    Posts
    566
    mySounda0 = new Sound();
    mySounda0.loadSound("media/mp3/a0.mp3", false);

    is all good, then too start it looped you have to use
    mySounda0.start(0,6);

    the first digit is defining a delay in seconds the second digit tells the amount of times you want to loop your sound

    good luck
    it is your mind that decides - it is with your mind that you fly


    vevmedia

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