MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 307

Director scripting reference
Table of Contents

Advertisement

Parameter
swSound
swText
swURL
swVolume
through
sw1
sw9
Parameters
paramNameOrNum
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
-- 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(),
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
parameter value is found, this method returns
If specifying a parameter value by index, this method returns the value of the parameter at the
paramNameOrNum
method returns
Definition
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.
A string value that specifies text to be used in the movie.
A string URL that may specify the location of another movie with Shockwave
content or Shockwave Audio file.
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.
Nine additional properties for author-defined parameters.
Required. A string that specifies the name of the parameter name to return, or
Movie
paramNameOrNum
position in the parameter list. If no matching parameter position is found, this
or
.
VOID
null
. The match is not case sensitive. If no matching
(Lingo) or
VOID
myVariable
(JavaScript syntax).
null
externalParamValue()
:
307

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents