530
Chapter 12: Methods
This command is a shorter alternative to using the
registerScript
command for collisions, but
there is no difference in the overall result. This command can be considered to perform a small
subset of the
registerScript
command functionality.
Parameters
handlerName
Required. Specifies the handler called when a model is involved in a collision.
scriptInstance
Required. Specifies the script instance that contains the handler specified by
handlerName
.
Example
This statement causes the
#bounce
handler in the cast member colScript to be called when the
model named Sphere collides with another model:
member("3d world").model("Sphere").collision.\
setCollisionCallback\
(#bounce, member("colScript"))
See also
collisionData
,
collision (modifier)
,
resolve
,
resolveA
,
resolveB
,
registerForEvent()
,
registerScript()
,
sendEvent
setFilterMask()
Usage
-- Lingo syntax
fileioObjRef
.setFilterMask(
stringMask
)
// JavaScript syntax
fileioObjRef
.setFilterMask(
stringMask
);
Description
Fileio method; Sets the filter mask for the
Files of type
field of a dialog box to specify the type of
files displayed when the dialog box opens.
Parameters
stringMask
Required. A string that specifies the filter mask.
See also
Fileio
setFinderInfo()
Usage
-- Lingo syntax
fileioObjRef
.setFinderInfo(
stringAttrs
)
// JavaScript syntax
fileioObjRef
.setFinderInfo(
stringAttrs
)
Description
Fileio method (Macintosh only); Sets the finder information for an open file.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
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...