June 1, 2001 - Selecting a Scene
June 1, 2001|
Selecting a Scene
Tips: June 2001
Yehuda Shiran, Ph.D.
flashmoviecheck.js does exactly this, as well as other stuff. For example, it checks whether a Flash player exists (Flash plug-in or ActiveX control), and whether its version is higher than the minimum required by the application.
GotoFrame()to go to a certain frame. The syntax is:
Flash activates the frame number specified by
frameNumberin 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.
frameNumber is zero-based. The first frame is 0, the second frame is 1, etc. This is not in synch with the frame numbering scheme within Flash, where the frames start at 1 (the
Goto action, for example). Play around with the following three links. You can rewind the movie, play it from its current position, and go to frame 300.
Here is the code: