# Preloading/Music problems

**URL:** https://forum.kirupa.com/t/preloading-music-problems/59689
**Category:** flash
**Created:** [August 3, 2004, 2:13am UTC](https://forum.kirupa.com/t/preloading-music-problems/59689 "2004-08-03T02:13:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![useruser51](https://avatars.discourse-cdn.com/v4/letter/u/5f9b8f/32.png) [@useruser51](https://forum.kirupa.com/u/useruser51)
#### Post date: [August 3, 2004, 2:13am UTC](https://forum.kirupa.com/t/preloading-music-problems/59689/1 "2004-08-03T02:13:16Z")

</div>

Im trying to make a whole site in flash, and one of the features is a 5 song playlist with a play and stop button. I made the preloader, but when i tested it, and posted it online, the preloader wasn’t running and the site was taking forever to load. I made a “test movie” to try to debug, but I was getting the same results. When i removed the song, i tested the movie, the preloader ran fine, and then went to the next scene. I dont know what’s going on.

To play the songs, I have a play button that loads the song from the library. It works, but i dont know if there is a better way to do it. Also, is there anyway to cut down on the loading time? And please help with the preloader issue.

I use a basic preloader:

in the first scene, the preloader scene, i type this code into the first frame:

if(\_root.\_framesloaded\>=\_root.\_framestotal){  
gotoAndPlay(“Scene 2”, 1);  
}

in the last frame of the preloader scene, i type in this code:

gotoAndPlay(1);

i want to make preloaders with percentages and loading bars, but that is not my main concern right now.

Please help.
