Sound not match the animation!

Dear all,

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();

Thanks for help!

Just a suggestion - I’m new.

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.

but i didn’t import my mp3 in the library, it a external file of the flash file, how can I modify the property?

This is what I would try:

I just tried it so I know it works.

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();.

This is how I do it, I hope it helps!

Thanks a lot! I 'll try it, hope it work.

sorry to bother you, but I can’t drag it, it has the black circle with the line through it when I try to put it in the frame

you don’t drag and drop the sound, but rather, click the frame, and select the sound track from the properties pane =)

I love you Ahmed you’re the best bangs head for being stupid

lol :blush: :P… glad i could help :slight_smile: