EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 394

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...
394 Chapter 12: Methods
mci
Usage
mci "string"
Description
Command; for Windows only, passes the strings specified by string to the Windows Media
Control Interface (MCI) for control of multimedia extensions.
Note: Microsoft no longer recommends using the 16-bit MCI interface. Consider using third-party
Xtra extensions for this functionality instead.
Parameters
string
Required. A string that is passed to the MCI.
Example
The following statement makes the command play cdaudio from 200 to 600 track 7 play
only when the movie plays back in Windows:
mci "play cdaudio from 200 to 600 track 7"
member()
Usage
-- Lingo syntax
member(memberNameOrNum {, castNameOrNum})
// JavaScript syntax
member(memberNameOrNum {, castNameOrNum});
Description
Top level function; creates a reference to a cast member, and optionally specifies the cast library
that contains the member.
The
member() method is a specific reference to both a cast library and a member within it if used
with both the
memberNameOrNum and castNameOrNum parameters:
trace(sprite(1).member);
// (member 1 of castLib 1)
This method differs from the spriteNum property of a sprite, which is always an integer
designating position in a cast library, but does not specify the cast library:
trace(sprite(2).spriteNum);
// 2
The number of a member is also an absolute reference to a particular member in a particular cast
library:
trace(sprite(3).member.number)
// 3
Parameters
memberNameOrNum
Required. A string that specifies the name of the cast member to reference, or
an integer that specifies the index position of the cast member to reference.