This command is a shorter alternative to using the
there is no difference in the overall result. This command can be considered to perform a small
subset of the
registerScript
Parameters
Required. Specifies the handler called when a model is involved in a collision.
handlerName
scriptInstance
.
handlerName
Example
This statement causes the
model named Sphere collides with another model:
member("3d world").model("Sphere").collision.\
setCollisionCallback\
(#bounce, member("colScript"))
See also
collisionData,
registerForEvent(), registerScript(),
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
Required. A string that specifies the filter mask.
stringMask
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.
530
Chapter 12: Methods
command functionality.
Required. Specifies the script instance that contains the handler specified by
handler in the cast member colScript to be called when the
#bounce
collision
(modifier), resolve, resolveA, resolveB,
command for collisions, but
registerScript
sendEvent
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers