Lingo Dictionary > O-R > openXlib |
![]() ![]() ![]() |
openXlib
Syntax
openXlib
whichFile
Description
Command; opens the Xlibrary file specified by the string expression whichFile
. If the file is not in the folder containing the current movie, whichFile
must include the pathname.
It is good practice to close any file you have opened as soon as you are finished using it. The openXlib
command has no effect on an open file.
The openXlib
command doesn't support URLs as file references.
Xlibrary files contain Xtras. Unlike openResFile
, openXlib
makes these Xtras known to Director.
In Windows, the .dll extension is optional.
Note: This command is not supported in Shockwave.
Example
This statement opens the Xlibrary file Video Disc Xlibrary:
openXlib "Video Disc Xlibrary"
Example
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()
, showXlib
![]() ![]() ![]() |