Click to See Complete Forum and Search --> : Flash and Music


gencprens
08-01-2007, 10:12 AM
Hi,

i am designing this web site -> http://www.cizreakparti.com

how i can flash movie start and finish with music?

music size: 7.71 mb
flash movie size: 500 KB

if i embedded music in flash movie, web site very slow and late opening.

dcpweb
08-01-2007, 05:46 PM
Hi,

I would recommend the following flash open source music player:

http://musicplayer.sourceforge.net/

I used this on a webiste I created for one of my clients:
http://www.stephanie-benson.co.uk/

You can also get the music player to start automaically in config file.

regards

p shah - www.dcpweb.co.uk (http://www.dcpweb.co.uk)

foxbeefly
08-02-2007, 06:10 AM
Hi

I can't open your site at all right now to see what you are talking about, but:
1) Placing a 7+Mb sound-file in your movie is crazy - I don't care how much bandwidth you may have in 1st world countries (that's jealousy - I'm in South Africa). Can you not use editing software to re-sample it to a smaller file-size?
2) I don't know what the track is... if it is just background music, try and cut a loop that will play repeatedly
3) " Stream" the sound from outside your movie. This way, it will start playing before it has finished downloading - in other words: you will not have to wait for the entire movie/sound to download before anything happens on the screen....

So your AS would be something like:

var mySoundTrack:Sound = new Sound();
mySoundTrack.loadSound('http://www.yoursite.com/mysoundtrack.mp3',true);
mySoundTrack.onLoad = function() {
mySoundTrack.start();
}

dcpweb
08-02-2007, 06:26 AM
Hi,

1. Compress the audio file to MP3 96kbs - this will reduce the file size
2. The audio flash application does not store the audio file, the audio file is located in a seperate dir.
3. The flash application buffers the audio file before it starts playing, so the file is still being downloaded while playing :)

In my experience this is the best way to deal with streaming audio cost effectivly.

regards