Sound plays multiple times at once

Posted by Jr. Mathews on Stack Overflow See other posts from Stack Overflow or by Jr. Mathews
Published on 2012-04-10T04:24:18Z Indexed on 2012/04/10 5:29 UTC
Read the original article Hit count: 238

Filed under:
|

I'm having trouble with sound in Flash. I may have went about coding the wrong way, because most of my codes are on frames.

So, I have these two variables

var outsideDay:Sound = new daysong();
var outsideNight:Sound = new nightsong();

And I want to play these songs on a specific frame. However, the sounds play sporadically, like 50 times at once. I think it's because I have other codes that link to the frames with a Enter_Frame function. How can I get the sounds to loop and not play multiple times at once?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about flash-cs5