# Loop Sound, But Stop Animation

**URL:** <https://forum.kirupa.com/t/loop-sound-but-stop-animation/277108>\
**Category:** flash\
**Created:** [December 8, 2008, 12:28am UTC](https://forum.kirupa.com/t/loop-sound-but-stop-animation/277108 "2008-12-08T00:28:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![electric\_emu](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@electric\_emu](https://forum.kirupa.com/u/electric_emu)\
**Post date:** [December 8, 2008, 12:28am UTC](https://forum.kirupa.com/t/loop-sound-but-stop-animation/277108/1 "2008-12-08T00:28:17Z")

</div>

Hello, first time poster and beginner actionscript-er.

I’ve been researching a sound problem I’m having with Flash 9 Actioscript 3, but I can’t seem to find an answer. Perhaps becasue the solution is too simple…?

I’m trying to add sound to a project that will loop even though the animation has stopped.

The sound has been added to the project using actionscript

var beat:Menumusic = new Menumusic();  
beat.play();

It plays through the time line just fine until it reaches a keyframe that contains stop();  
I’m using nested, animated, movieclips, that flutter onto the stage, then just sit there flapping their wings. I used stop(); so they would just hang out flapping and not go onto the next frame, but the stop also causes the music to stop, even if I have loop selected in the properties.

Most of the info I found on stopping and starting sound was for buttons or playing video. So I’m appealing here for some help.

Thanks in advance 🙂
