In Windows, the .dll extension is optional.
Note: This command is not supported in Shockwave Player.
Parameters
Required. Specifies the Xlibrary file to open. If the file is not in the folder containing
whichFile
the current movie,
Example
This statement opens the Xlibrary file Video Disc Xlibrary:
openXlib "Video Disc Xlibrary"
This statement opens the Xlibrary file Xtras, which is in a different folder than the current movie:
openXlib "My Drive:New Stuff:Transporter Xtras"
See also
closeXlib,
interface()
param()
Usage
param(parameterPosition)
Description
Function; provides the value of a parameter passed to a handler.
To avoid errors in a handler, this function can be used to determine the type of a particular
parameter.
Parameters
parameterPosition
a handler.
Example
This handler accepts any number of arguments, adds all the numbers passed in as parameters, and
then returns the sum:
--Lingo syntax
on AddNumbers
sum = 0
repeat with currentParamNum = 1 to the paramCount
sum = sum + param(currentParamNum)
end repeat
return sum
end
// JavaScript syntax
function AddNumbers() {
sum = 0;
for (currentParamNum=1;currentParamNum<=paramCount;currentParamNum++) {
sum = sum + param(currentParamNum);
}
return sum;
}
438
Chapter 12: Methods
must include the pathname.
whichFile
Required. Specifies the parameter's position in the arguments passed to
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