I’ve making a animation and attached a sound (mp3) with it. It match with the animation fine in my local machine, but the ainimation / sound run slowly in the browser or even in some less powful machine!
I 've already create a preloader for the movie, seems still have the problem,…am I missing somthing? here are the coding I used for attached the sound:
=============================================
s = new Sound();
s.loadSound(“soundfile.mp3”, true);
i = 1;
function timeme () {
now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
_level1[“nowtime”+i] = (Number(hours)*3600)+(Number(minutes)*60)+seconds;
_level1.newstarttime = _level1[“nowtime”+i]-_level1.nowtime1;
i++;
}
s.start();
timeme();
In ‘proporties’, when you select your sound, is your sync set to ‘stream’? I had the same problem with one of my sites, but I’m using wavs. I know that when it’s set to stream it will break up the sound to fit to each frame.
In File, hit Import To Library, select your .MP3 file and Flash will format it so it can be used in the movie.
Add a layer to your movie and lable it sound.
Insert a keyframe where you want the sound to start.
From your library (Ctrl-L) drag and drop the sound that you just imported - set sync to ‘stream’ so it plays as it loads from the server. Also in properties, set the loop to however many times you want it to play (1, 4, 4000, etc.).
If at any time you want the music to stop, insert a keyframe in that place and add the action stopAllSounds();.