externalParamValue()
307
Parameters
paramNameOrNum
Required. A string that specifies the name of the parameter name to return, or
an integer that specifies the index location of the parameter name to return.
Example
This statement places the value of a given external parameter in the variable
myVariable
:
-- Lingo syntax
if (_player.externalParamName("swURL") = "swURL") then
myVariable = _player.externalParamName("swURL")
end if
// JavaScript syntax
if (_player.externalParamName("swURL") == "swURL") {
var myVariable = _player.externalParamName("swURL");
}
See also
externalParamValue()
,
Movie
externalParamValue()
Usage
-- Lingo syntax
_player.externalParamValue(
paramNameOrNum
)
// JavaScript syntax
_player.externalParamValue(
paramNameOrNum
);
Description
Returns the value of a specified parameter in the list of external parameters from an HTML
<EMBED> or <OBJECT> tag.
If specifying a parameter value by name, this method returns the value of the first parameter
whose name matches
paramNameOrNum
. The match is not case sensitive. If no matching
parameter value is found, this method returns
VOID
(Lingo) or
null
(JavaScript syntax).
If specifying a parameter value by index, this method returns the value of the parameter at the
paramNameOrNum
position in the parameter list. If no matching parameter position is found, this
method returns
VOID
or
null
.
swSound
A string value which may specify the name of a sound in the Director movie to be
played, or whether or not a sound should be played at all.
swText
A string value that specifies text to be used in the movie.
swURL
A string URL that may specify the location of another movie with Shockwave
content or Shockwave Audio file.
swVolume
An integer value (0 to 10 is recommended) that is used to control the volume level
of the sound output from the movie. 0 is off (no sound), 10 is maximum volume.
sw1
through
sw9
Nine additional properties for author-defined parameters.
Parameter
Definition
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
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...