PDA

View Full Version : Triggering/syncing sound with graphics in Flash?


ffwd
02-28-2005, 03:18 PM
Hi all, I'm looking for a way to trigger/sync sound files or even hard/soft synths (midi) with the help of graphic- and some times video elements. So I was wondering if Flash could be the way to go? Any help would be highly appreciated.
Regards, FFWD

Darkware
02-28-2005, 03:56 PM
You can't trigger it with graphics or video, but you can either: a) predict what frame your want the sound to occur at while your animation or video is playing then use your sound code on that frame -or- b) use setInterval(); to make your sounds play at a certain time. The frame way is more accurate however.

ffwd
02-28-2005, 04:40 PM
Ok, thanx a lot Darkwave. Tho I think there's another way to do it, using the OSC protocol:http://www.cnmat.berkeley.edu/OpenSoundControl/
I don't really understand how it works cuz I just found it, anyone fimiliar with it is free to fill me in..