|
June 1, 2001 Selecting a Scene Tips: June 2001
Yehuda Shiran, Ph.D.
|
|
In some of your applications you may need to use Flash movies 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, for example.
One of the "tiny" details is embedding the Flash object. The JavaScript file GotoFrame() to go to a certain frame. The syntax is:
Flash activates the frame number specified by frameNumber in the current movie. If the frame is not yet loaded, the player goes to the last frame currently available and stops, causing unexpected behavior during playback. Use the PercentLoaded() method to check the loading status of your movie, and determine whether your specific frame is already current.
The argument Rewind | Play | Go To Frame 300 Here is the code:
People who read this tip also read these tips: Look for similar tips by subject: |