May 15, 2001 - Jumping to a Frame | WebReference

May 15, 2001 - Jumping to a Frame

Yehuda Shiran May 15, 2001
Jumping to a Frame
Tips: May 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

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 these tiny details is to check for minimum player version and then jumps to the required frame, to start the sound. The sonified_flash() function accepts one parameter (the frame number), checks for the minimum player version number, creates a SWF object, ensures that the SWF is 100% loaded, and then jump to the given frame:

function sonified_flash(myFrame) {
  if(!Flash_checkForMinPlayer()) {return;}
  mySwf = window.document.sonify;
  if (mySwf.PercentLoaded()