# Looping a streaming audio

**URL:** <https://forum.kirupa.com/t/looping-a-streaming-audio/20493>\
**Category:** Uncategorized\
**Created:** [May 9, 2003, 4:31am UTC](https://forum.kirupa.com/t/looping-a-streaming-audio/20493 "2003-05-09T04:31:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cheez00](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@Cheez00](https://forum.kirupa.com/u/Cheez00)\
**Post date:** [May 9, 2003, 4:31am UTC](https://forum.kirupa.com/t/looping-a-streaming-audio/20493/1 "2003-05-09T04:31:16Z")

</div>

hi i wnat to stream an audio loop, for one of my sites, i want it to just load right away as it plays, then when its done, to keep repeating, i tried just puting in all the frames for the whole loop, then just have the swf repeat, but it skips pretty bad, any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2003, 6:20am UTC](https://forum.kirupa.com/t/looping-a-streaming-audio/20493/2 "2003-05-09T06:20:28Z")

</div>

when the sound is on the timeline you set the number of times to loop in the properties palette. need to familiarize yourself with the interface a lil more eh? thats probably why you didnt get a reply sooner.

but anyway…

but i would load the sound in frame 2 using loadSound() and then i would check for when the sound stops playing to start it playing again.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2003, 9:26am UTC](https://forum.kirupa.com/t/looping-a-streaming-audio/20493/3 "2003-05-09T09:26:13Z")

</div>

oooh you mean i can loop the song by itslef on the properties pannel;??? (duh heheehehhehe) yeah i treid that… it just gets to the end of the song, ( this is on stream, mind you…) and it just restarts like the loop starts over but there is a crack, if i put a stop action on last frame, the stream stops…

thanks for taking the time to help btw

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2003, 4:01pm UTC](https://forum.kirupa.com/t/looping-a-streaming-audio/20493/4 "2003-05-09T16:01:58Z")

</div>

> \*Originally posted by Cheez00 \*  
> \*\*oooh you mean i can loop the song by itslef on the properties pannel;??? (duh heheehehhehe) yeah i treid that… it just gets to the end of the song, ( this is on stream, mind you…) and it just restarts like the loop starts over but there is a crack, if i put a stop action on last frame, the stream stops…

thanks for taking the time to help btw \*\*

you mean when u put a stop() action in your last main movie frame?  
well i think it has a crack b/c its restarting (not b/c of the stop action) and it has a little bit of blank song space at the beginning or end of the song.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2003, 8:35pm UTC](https://forum.kirupa.com/t/looping-a-streaming-audio/20493/5 "2003-05-09T20:35:20Z")

</div>

yes thats why it skips, because the movie repeats, im saying when the sound is on event, i put a stop action on the last keyframe and the movie stops, and the song repeats, but not on stream
