|
May 27, 2001 Jumping to the Next Sound Track Tips: May 2001
Yehuda Shiran, Ph.D.
|
|
In some of your applications you may need to use Flash Audio and JavaScript directly, without any prepackaged APIs such as FlashSound JavaScript API. You will enjoy more features, methods, and properties, but you'll have to take care of all the tiny details that are taken for granted when using FlashSound API.
One of the "tiny" details is embedding the sound object. The JavaScript file included in this tip, Play() Flash method. The syntax is just Play(). It starts playing the track. When you have several sound tracks on the same SWF, the playhead will jump to the next track when you call Play(). Try the animal sounds below. Each button click advances the playhead to the next animal sound.
People who read this tip also read these tips: Look for similar tips by subject: |