EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 437

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...
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.