EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 438

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
438 Chapter 12: Methods
In Windows, the .dll extension is optional.
Note: This command is not supported in Shockwave Player.
Parameters
whichFile
Required. Specifies the Xlibrary file to open. If the file is not in the folder containing
the current movie,
whichFile must include the pathname.
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
Required. Specifies the parameter’s position in the arguments passed to
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;
}