gotoNetPage
353
gotoNetPage
Usage
gotoNetPage "
URL
", {"
targetName
"}
Description
Command; opens a movie with Shockwave content 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.
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.
Parameters
URL
Required. Specifies the URL of the movie with Shockwave content or MIME file to play.
targetName
Optional. An 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 omitted,
gotoNetPage
replaces the current page, wherever it is located.
Example
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 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...