450
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 Xtra extensions. Unlike
openResFile
,
openXlib
makes these Xtra
extensions known to Director.
In Windows, the .dll extension is optional.
Note:
This command is not supported in Shockwave.
Examples
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()
,
showXlib
optionDown
Syntax
the optionDown
Description
System property; determines whether the user is pressing the Alt key (Windows) or the Option
key (Macintosh) (
TRUE
) or not (
FALSE
).
In Windows,
optionDown
doesn’t work in projectors if Alt is pressed without another
nonmodifier key. Avoid using
optionDown
if you intend to distribute a movie as a Windows
projector and need to detect only the modifier key press; use
controlDown
or
shiftDown
instead.
On the Macintosh, pressing the Option key changes the
key
value, so use
keyCode
instead.
For a movie playing back with the Director player for Java, this function returns
TRUE
only if a
second key is pressed at the same time as the Alt or Option key. If the Alt or Option key is pressed
by itself,
optionDown
returns
FALSE
.
The Director player for Java supports key combinations with the Alt or Option key. However, the
browser receives the keys before the movie plays and responds to and intercepts any key
combinations that are also browser keyboard shortcuts.
Summary of Contents for DIRECTOR MX-LINGO DICTIONARY
Page 1: ...Lingo Dictionary Macromedia Director MX...
Page 756: ...Index 756...