Published on: Monday 14th May 2001 By: Ian Chia, Hayden Porter and Tony DeYoung
Imagine if you could add interactive audio to a site, that more than 90% of average users were already equipped for.
Imagine that the site is still functional even if they didn't have Flash. No more "Enter here with Flash | Enter there without Flash". You won't always have to build it twice.
Experience what we're talking about by popping up our small, punchy demo. Roll over any of the graphics and links in the window to trigger interactive Flash audio, using the FlashSound API. If you like what you hear but can't see, you can find even more FlashSound tutorials on Sonify.org.
Our head-numbing buffet of 13 fistycuff sound bites total 86Kb in payload (that's a tiny 6Kb-ish per lovepat). Music with the afro haircut weighs in at another 45Kb. The page is visible straightaway, whilst the sound continues loading in. Once the audio swfs have loaded, they are automatically enabled.
The first step in sonifying a website with flash is to create a "sound only" movie. Sound only movies consist of specially constructed movie clips that contain a sound and simple ActionScript.
For help on creating "sound only" movies, read the online article Flash Interactive Sound Design Part 1: The "Timeline" Approach.
After creating a "sound only" swf, you can begin to code a web page for sound. Coding with the FlashSound API typically has four steps:
4) Explore using the FlashSound API to control playback of your "sound only" swf by adding playback methods to links, or by setting compatibility methods or embed properties in script tags.
To find out more, click here to go to Sonify.org's FlashSound API Central.