// JavaScript syntax
function checkExit() {
if ((_key.commandDown) && (_key.key == "." | _key.key == "q") &&
(_movie.exitLock == true)) {
_movie.go("quit sequence");
}
}
See also
Movie
externalParamCount
Usage
-- Lingo syntax
_player.externalParamCount
// JavaScript syntax
_player.externalParamCount;
Description
Player property; returns the number of parameters that an HTML <EMBED> or <OBJECT> tag
is passing to a movie with Shockwave content. Read-only.
This property is valid only for movies with Shockwave content that are running in a browser. It
doesn't work for movies during authoring or for projectors.
For more information about the valid external parameters, see
externalParamValue()
Example
This handler determines whether an <OBJECT> or <EMBED> tag is passing any external
parameters to a movie with Shockwave content and runs Lingo statements if parameters are
being passed:
-- Lingo syntax
if (_player.externalParamCount > 0) then
-- perform some action
end if
// JavaScript syntax
if (_player.externalParamCount > 0) {
// perform some action;
}
See also
externalParamName(), externalParamValue(),
760
Chapter 14: Properties
.
externalParamName()
Player
and
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?