# Sound gone after preloading?

**URL:** https://forum.kirupa.com/t/sound-gone-after-preloading/185334
**Category:** Uncategorized
**Created:** [April 12, 2006, 3:19pm UTC](https://forum.kirupa.com/t/sound-gone-after-preloading/185334 "2006-04-12T15:19:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sanj](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Sanj](https://forum.kirupa.com/u/Sanj)
#### Post date: [April 12, 2006, 3:19pm UTC](https://forum.kirupa.com/t/sound-gone-after-preloading/185334/1 "2006-04-12T15:19:54Z")

</div>

Hi,

I’m preloading the frames of my flash movie in the first frame, after UN-checking the ‘export in first frame’ from all the sounds in the library and assigning the AS Classes to export into frame 2 in ‘Publish Settings’ - my sounds appears have vanished for some reason…

Any help would be great…

Here’s the code for the sound object (on frame 3 of the movie - beginning of the movie)

\_root.createEmptyMovieClip(“soundHolder0\_mc”, 1);  
\_root.createEmptyMovieClip(“soundHolder1\_mc”, 2);  
\_root.createEmptyMovieClip(“soundHolder2\_mc”, 3);

mySound1\_sound = new Sound(soundHolder0\_mc);  
mySound2\_sound = new Sound(soundHolder1\_mc);  
mySound3\_sound = new Sound(soundHolder2\_mc);

// attach sounds  
mySound1\_sound.attachSound(“housesound”);  
mySound2\_sound.attachSound(“walking”);  
mySound3\_sound.attachSound(“mousey”);

// loop sounds  
mySound1\_sound.start(0, 100);  
mySound2\_sound.start(2, 100);

// set volume  
mySound1\_sound.setVolume(25);  
mySound2\_sound.setVolume(100);

Thanks
