# Need Help with Sound

**URL:** <https://forum.kirupa.com/t/need-help-with-sound/6188>\
**Category:** flash\
**Created:** [October 1, 2002, 1:20pm UTC](https://forum.kirupa.com/t/need-help-with-sound/6188 "2002-10-01T13:20:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Original\_D](https://avatars.discourse-cdn.com/v4/letter/o/a6a055/32.png) [@Original\_D](https://forum.kirupa.com/u/Original_D)\
**Post date:** [October 1, 2002, 1:20pm UTC](https://forum.kirupa.com/t/need-help-with-sound/6188/1 "2002-10-01T13:20:21Z")

</div>

Hi,  
My movie (the first scene) is about 50 kb large. Now I want to add a sound loop (100kb). How can i let the preloader load till 50 kb, play the first scene and then whenever the sound-loop is loded it plays. So i dont have to wait till the movie and sound is loaded. (SO basicly the loader will load till 50 kb–\> the first scene plays—\> the sound is loading in the background----\> when the sound is loaded it plays)

thnx

---

<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:** [October 1, 2002, 1:21pm UTC](https://forum.kirupa.com/t/need-help-with-sound/6188/2 "2002-10-01T13:21:31Z")

</div>

I already tried : if frame is loaded. But the preloader load both the movie and the sound in the same time

---

<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:** [October 2, 2002, 1:48pm UTC](https://forum.kirupa.com/t/need-help-with-sound/6188/3 "2002-10-02T13:48:09Z")

</div>

You might consider a conditional loop using getBytesLoaded() and/or getBytesTotal()

e.g.

if (\_getBytesLoaded\>=50000) {  
play();  
} else {  
gotoAndPlay(\_currentframe-1);  
}
