EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 351

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
goToFrame() 351
goPrevious()
Usage
-- Lingo syntax
_movie.goPrevious()
// JavaScript syntax
_movie.goPrevious();
Description
Movie method; sends the playhead to the previous marker in the movie.
This marker is two markers back from the current frame if the current frame does not have a
marker or one marker back from the current frame if the current frame has a marker.
If no markers are to the left of the playhead, the playhead branches to one of the following:
• The next marker to the right if the current frame does not have a marker
• The current frame if the current frame has a marker
• Frame 1 if the movie contains no markers
Parameters
None.
Example
This statement sends the playhead to the previous marker in the movie:
-- Lingo syntax
_movie.goPrevious()
// JavaScript syntax
_movie.goPrevious();
See also
go(), goLoop(), goNext(), Movie
goToFrame()
Usage
-- Lingo syntax
spriteObjRef.goToFrame(frameNameOrNum)
// JavaScript syntax
spriteObjRef.goToFrame(frameNameOrNum);
Description
Command; plays a Flash movie sprite beginning at the frame identified by the frameNumber
parameter. You can identify the frame by either an integer indicating a frame number or by a
string indicating a label name. Using the
goToFrame command has the same effect as setting a
Flash movie sprite’s
frame property.