# Setting Sounds to Loop with AS

**URL:** <https://forum.kirupa.com/t/setting-sounds-to-loop-with-as/220221>\
**Category:** flash\
**Created:** [March 23, 2007, 7:49pm UTC](https://forum.kirupa.com/t/setting-sounds-to-loop-with-as/220221 "2007-03-23T19:49:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brachford](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@brachford](https://forum.kirupa.com/u/brachford)\
**Post date:** [March 23, 2007, 7:49pm UTC](https://forum.kirupa.com/t/setting-sounds-to-loop-with-as/220221/1 "2007-03-23T19:49:41Z")

</div>

I’m planning to implement as sound that will simply play in the background of my site. The sound file is just under 30 seconds in length. Obviously I want this to loop … can I set it to do so using ActionScript? If so, would you mind providing me with some sample code?

Thanks in advance for you help.
