Skip to main content
Inspiring
July 22, 2008
Question

attach sound using AS 2.0 and have it Loop.

  • July 22, 2008
  • 1 reply
  • 385 views
I am creating a sound player for a website and cannot get the sound to repeat. I downloaded the sound from flashkit.com and it is a 7 second loop. When i use a MC, i am able to loop the sound with no problem, however, using the attach sound method, it plays once and then stops. Do i need to use an onEnterFrame event to keep it going? Any assistance is appreciated. The code i am using to attach the sound is below.
This topic has been closed for replies.

1 reply

Participating Frequently
July 22, 2008
On your sndAudio.start();

Try something like sndAudio.start(0,99);

First numbet is seconds offset from the start of the sound, the second number in the number of time you want the file to loop.

Hope this helps!