|
April 19, 2001 Looping an SWF Tips: April 2001
Yehuda Shiran, Ph.D.
|
|
The FlashSound JavaScript API supports several instance properties. The loop property tells the Flash player to re-trigger the track when the playhead reaches the end of the track. The SWF file should not include a stop label at the end of the track because it inhibits its looping, even if you specify loop=true before you embed the SWF file. As a reminder, in order to sonify your page, follow this recipe:
flashsound.js in the HEAD section.
HEAD section.
BODY section.
TGotoAndPlay() method.
In this tip we demonstrate an SWF file that by default start playing when embedded in a page. The following two links point to two pages with similar code: Here is the code for the left link:
Notice the Also important to remember is the fact that not every sound track can be made to loop. In fact, most SWF files are not suitable, because they contain a stop label at the last frame.
Here are links you can use to download
People who read this tip also read these tips: Look for similar tips by subject: |