EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 268

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...
268 Chapter 12: Methods
closeXlib
Usage
closeXlib whichFile
Description
Command; closes an Xlibrary file.
Xtra extensions are stored in Xlibrary files. Xlibrary files are resource files that contain Xtra
extensions. HyperCard XCMDs and XFCNs can also be stored in Xlibrary files.
The
closeXlib command doesnt work for URLs.
In Windows, using the DLL extension for Xtra extensions is optional.
It is good practice to close any file you have opened as soon as you have finished using it.
Note: This command is not supported in Shockwave Player.
Parameters
whichFile
Optional. Specifies the Xlibrary file to close. If whichFile is in a folder other than
that for the current movie,
whichFile must specify a pathname. If whichFile is omitted, all
open Xlibraries are closed.
Example
This statement closes all open Xlibrary files:
closeXlib
This statement closes the Xlibrary Video Disc Xlibrary when it is in the same folder as the movie:
closeXlib "Video Disc Xlibrary"
The following statement closes the Xlibrary Transporter Xtra extensions in the folder New Xtras,
which is in the same folder as the movie. The disk is identified by the variable
currentDrive:
closeXlib "@:New Xtras:Transporter Xtras"
See also
interface(), openXlib
color()
Usage
-- Lingo syntax
color(intPaletteIndex)
color(intRed, intGreen, intBlue)
// JavaScript syntax
color(intPaletteIndex);
color(intRed, intGreen, intBlue);
Description
Top level function and data type. Returns a Color data object using either RGB or 8-bit palette
index values.
The resulting color object can be applied to cast members, sprites, and the Stage where
appropriate.

Related product manuals