openXlib
437
Example
This statement opens the window Control Panel and brings it to the front:
-- Lingo syntax
window("Control Panel").open()
// JavaScript syntax
window("Control Panel").open();
See also
close()
,
downloadNetThing
,
fileName (Window)
,
preLoadMovie()
,
Window
openFile()
Usage
-- Lingo syntax
fileioObjRef
.openFile(
stringFileName
,
intMode
)
// JavaScript syntax
fileioObjRef
.openFile(
stringFileName
,
intMode
)
Description
Fileio method; Opens a specified file with a specified mode.
Parameters
stringFileName
Required. A string that specifies the full path and name of the file to open.
intMode
Required. An integer that specifies the mode of the file. Valid values include:
•
0—Read/write
•
1—Read-only
•
2—Writeable
See also
Fileio
openXlib
Usage
openXlib
whichFile
Description
Command; opens a specified Xlibrary file.
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.
When you open a Scripting Xtra extension using
openXlib
, you must use
closeXlib
to close it
when Director is finished using it.
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...