music is always timed differently

  • susancbk
  • Proficient
  • Proficient
  • susancbk
  • Posts: 293
  • Loc: New York City

Post 3+ Months Ago

I have a movie that is supposed to coordinate with the music. However, whenever I play the movie it seems the music moves around. '
Ex. music will match a motion perfectly -- but next time I go to play it the music happens too fast or vice versa.

The changes weren't noticible on my home computer, but when I played it on a much faster computer the changes were significant.

Why is it doing this? and is there anyway to prevent it?
  • yuriythebest
  • Banned
  • Banned
  • User avatar
  • Posts: 143
  • Loc: Ukraine

Post 3+ Months Ago

It's all a matter of processor speed, some will slow down on the graphical side and the music will be the fist in the race. You could though split the music iinto sections (eg 30 seconds) using a proggie like soundforge and reassemble them back in flash. that would minimize the effect.
  • mikeroesoft
  • Newbie
  • Newbie
  • mikeroesoft
  • Posts: 6
  • Loc: London, England UK

Post 3+ Months Ago

Hi susancbk

You could try breaking up sections of the movie and the music into intervals.

Each time you play the movie you could set all intervals by clicking a button.

This way, all sections of music and the movie would remain synchronised.

Your problem sounds similar to one I had where each time I played my movie, certain sequences were out of time. Using intervals fixed the problem. This solution might work for you.

This is the synatax for creating an interval:

music_interval = setInterval(MusicPlayFunction,60000);

The above code allows a function to play some music for 60 seconds.
The paramaters to the setInterval function are (1) the function that is timed (2) the length of time for the function.

This is how you clear an interval.


You could start the movie from a button with all your sequences inside it:


interval1 = setInterval( music, 10000);
interval2 = setInterval(dialog, 10000);
interval3 = setInterval(effects, 10000);

function RunEveryThingAbove(){
gotoAndPlay("frame that starts everything");

Then stop everything with a second button:


clearInterval( music);

function StopEveryThingAbove(){
gotoAndPlay("frame that ends everything");

Give it a try. I hope it helps.


Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 5 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.