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()
Содержание DIRECTOR MX 2004
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...