284
Examples
In this statement, the URL indicates a Director filename:
gotoNetMovie "http://www.yourserver.com/movies/movie1.dcr"
In this statement, the URL indicates a marker within a filename:
gotoNetMovie "http://www.yourserver.com/movies/buttons.dcr#Contents"
In the following statement,
gotoNetMovie
is used as a function. The function returns the
network ID for the operation.
myNetID = gotoNetMovie ("http://www.yourserver.com/movies/
buttons.dcr#Contents")
gotoNetPage
Syntax
gotoNetPage "
URL
", {"
targetName
"}
Description
Command; opens a Shockwave movie or another MIME file in the browser.
Only URLs are supported as valid parameters. Relative URLs work if the movie is on an
HTTP or FTP server.
The
targetName
argument is an optional HTML parameter that identifies the frame or window
in which the page is loaded.
•
If
targetName
is a window or frame in the browser,
gotoNetPage
replaces the contents of that
window or frame.
•
If
targetName
isn’t a frame or window that is currently open,
goToNetPage
opens a
new window. Using the string "_new" always opens a new window.
•
If
targetName
is not included,
gotoNetPage
replaces the current page, wherever it is located.
In the authoring environment, the
gotoNetPage
command launches the preferred browser if it is
enabled. In projectors, this command tries to launch the preferred browser set with the Network
Preferences dialog box or
browserName
command. If neither has been used to set the preferred
browser, the
goToNetPage
command attempts to find a browser on the computer.
Examples
The following script loads the file Newpage.html into the frame or window named frwin. If a
window or frame in the current window called frwin exists, that window or frame is used. If the
window frwin doesn’t exist, a new window named frwin is created.
on keyDown
gotoNetPage "Newpage.html", "frwin"
end
This handler opens a new window regardless of what window the browser currently has open:
on mouseUp
goToNetPage "Todays_News.html", "_new"
end
See also
browserName()
,
netDone()
Summary of Contents for DIRECTOR MX-LINGO DICTIONARY
Page 1: ...Lingo Dictionary Macromedia Director MX...
Page 756: ...Index 756...