depends upon the size of the music clips, and how much bandwidth your provider gives you.
In general, I stay away from music in when making sites. I know a lot of people surf with music, and I’d hate for one of my favorite songs to be interupted.
That aside though, you might still want to provide people the option for music. If that’s the case, small loops are best. Ones that are small enough, if you can, that it really doesn’t matter if they are all in one file, or in separate swfs.
File size is important obviously. I tend to like to visit pages that are less than 100k before I can actually see some information. If I have to wait around for a flash to load, but I have something interesting to read, I’ll be pretty content.
a real song, running something like 2 mb should always be loaded separately and only after the aproval of the visitor with some sort of message popup alerting him to a wait.
I guess it really depends upon what you had in mind for music. Is it background loops smaller than say 45k or so, or songs running as big as 3 mb?
I tried various ways already. I had problems with music looping on top of each other as well. Why does it do that? Or what should I be doing differently to prevent this?
The idea behind the music is to hear samples of local music artists - something short. -probably a few songs for each artist, but nothing in it’s entirety.
I will check the file sizes, make some adjustments, and repost.
I have a great FLA that i posted once. It will run your music like I have it on my site. If you would like to take a look at it I’ll e-mail it or post it for download from my server. It is very basic and loads the music seprtly. The user can start to surf the site while the music still loads
music loops when it’s set to loop. You can use a global method called stopAllSounds(); from any location to stop EVERYTHING from making noise or looping a sound.
Syntax sound player is a good one. I’d definitely suggest checking it out.
I’ll post it for u when I get off work. It is a simpler form of the one I have on my site. The code is clean and easy to undersatnd so you should be able to modify it to anything.
Thanxs for the complement david. I should write a simple tut on it and mabye kirupa will put it up.:goatee:
Sorry it took so long. I get forgetful sometimes. Here is the basic FLA for how to load sound external. This cuts down on file size and the music will not over lap. I’m currently working on one that closer resembles the one on my site. Please download ASAP and notifey my when u have it. It is a little big for my server.
Good Luck:)
I finally got it. sorry it took a minute to reply.
Ok, the music seems to be working ok. But It still has an awkward pause before it starts.
So this brings me to a few more questions…
I looked at this site - www.modanightclub.com and their music loads right away. (no pauses) How did they do that?
I was talking to a few people and they said using MIDI is better for file size and programming. So, is the above site using this? And if so where can we find MIDIs to download?
I just stick to MP3’s so I don’t know about the midi’s. That pause is the music loading. What u can do is make it a little more advanced by making a new scene in your track files and putting a simple preloader in it. Then insted of loading your tracks into level 99 load them into a contaner MC in the main SWF. Then move the location of the contaner MC to where u want the preloader to show up. U will notice that the quality of sound at that link u provided is kind of poor. The are probley useing a very tight commpression and streaming the sound. On a slow conection this would buffer and the sound would stop(thats bad). I’m working on a more advancded FLA with preloaders and animations, more like the one on my site. I will be posting it some where wit ha tut later this month. In the meantime modify that FLA the best u can i guess. It is only ment to help understand the comcepts of externaly loading music. HAve fun