What Is the FlashSound API?
Download and install the free 30-day trial Flash Authoring Application from Macromedia.Acquire audio samples (wav for Windows/aiff for MacOS) either from the Web, a CD, or from the Flash 5 Sound Common library.
Try these examples.
||Do not play stream sounds with the window.onload event. If you specify a stream sound in the onLoad event, the browser will download the entire file (treat it as a download) rather than play the file as a stream.|
||Do not loop stream sounds with the sound panel. This replicates the sound within your movie, drastically increasing file size. Generally, you should loop only download sounds.|
||To control sound playback within the browser, create a sound-only movie to contain your sounds. Each sound has a corresponding sound-only movie clip and each movie clip must have an instance name. Use the FlashSound API code template to easily add sound to your site. Remember that each embedded SWF must have its own FlashSound instance name and embedSWF( ) statement. Use the TGotoAndPlay( ) method to control download sounds and the TPlay( ) and TStopPlay( ) methods to control stream sounds.|