Nsync with music

no, this is not about that sh**ty boys band ;]

How to sync animation with music regardless of frame rate? Sometimes I get full 40 f/s but when its a bit off - we are talking about 1 frame - whole effect disappears. Whole site is quite dynamic, AS has to do lots of “thinking” and sometimes frame rate skips a beat.

Music in flash is my weak point :frowning:

as the French say “muchos gracias” for any help.