A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Actionscript Music loop problem

  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    5
    I inserted a music loop into my movie by way of actionscripting using the following code.

    Code:
    s = new Sound();
    s.attachSound("mySound");
    s.start();
    It plays but it doesnt loop. And Im not familar enough with actionscripting to loop it. Could someone please provide me with the code needed to loop an actionscripted music loop? Any assistance will be greatly apprecialted.

    Thanks: Nico

  2. #2
    i just learned how to do this and had that problem.

    s = new Sound();
    s.attachSound("mySound");
    s.start(0,20);

    all you need to do is add what is in the ( )
    the first number(0) will tell it where in the music loop you want to start. if its 15, then it will start 15 sec into the loop, the second number(20) is how many times you want it to loop.
    there is a good explaination of this with in flash help. search sound.

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