User Guide

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