Jumping To Locations With Lingo Or Javascript Syntax - MACROMEDIA DIRECTOR MX 2004-USING DIRECTOR Use Manual

Hide thumbs Also See for DIRECTOR MX 2004-USING DIRECTOR:
Table of Contents

Advertisement

Jumping to locations with Lingo or JavaScript syntax

The Lingo or JavaScript syntax navigation features can make a movie jump to other frames, to
other movies, or to Internet movies and web pages. You can also use script to make a movie
appear to pause by looping in one frame or a group of frames.
For more information about specifying the locations of frames, markers, and movies in Lingo and
JavaScript syntax, see the Scripting Reference topics in the Director Help Panel.
Jumping to a different frame
Lingo or JavaScript syntax let you jump to a different frame in the current movie or in
another movie.
To jump to a specific frame in the current movie, use the
or number as a parameter.
For example, the statement
To jump to the beginning of a different movie, or to a specific frame in a different movie, use
the
method, and pass it the name of the movie to jump to, and the frame name or number
go
within that movie to jump to.
For example, the statement
Rosebud in the movie Citizen_Kane.dir.
For more information, see the Scripting Reference topics in the Director Help Panel.
Jumping to a URL
Lingo or JavaScript syntax lets you jump to a URL that represents an Internet movie or a
web page.
To jump to an Internet movie, use the
For example, the statement
movie1.dcr"
this method, see the Scripting Reference topics in the Director Help Panel.
To jump to a web page, use the
For example, the statement
intro.html"
information about this method, see the Scripting Reference topics in the Director Help Panel.
Looping in a group of frames
Looping within frames lets you create animation that recycles or makes a movie appear to pause.
Such looping is useful for allowing a network operation to complete before the movie proceeds.
Looping a movie by jumping from the current frame back to the first frame in the sequence can
create a recycling animation effect.
To loop within one segment of the Score, use the
marker to the left of the frame that contains the
marker, the playhead jumps to frame 1.
To pause a movie in one frame but keep it playing so the movie can react to events, use the
statement
go to the frame
To resume playing a movie that is looping in one frame, use the
statement.
go("Begin Over")
go("Rosebud", "Citizen_Kane")
gotoNetMovie "http://www.yourserver.com/movies/
retrieves and plays the movie named movie1.dcr. For more information about
gotoNetPage
gotoNetPage "http://www.yourserver.com/movies/
displays the web page named intro.html in a browser window. For more
to loop in the current frame.
method, and pass it a frame name
go
jumps to the frame labeled Begin Over.
method.
gotoNetMovie
method.
statement to return to the first
go loop
statement. If there is no previous
go loop
Jumping to locations with Lingo or JavaScript syntax
jumps to a frame labeled
go to the frame + 1
293

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents