|
May 26, 2001 Monitoring Loading Progress of SWFs) 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, PercentLoaded() Flash method. The syntax is PercentLoaded(). It returns the percent of the Flash Player that has streamed into the browser so far. Possible values are between 0 and 100. For the short sound track shown here you'll probably always get 100%.Here is the source code:
People who read this tip also read these tips: Look for similar tips by subject: |