User Guide

760 Chapter 14: Properties
// 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
doesnt work for movies during authoring or for projectors.
For more information about the valid external parameters, see
externalParamName() and
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(), Player