812
Chapter 14: Properties
Example
This statement sets the
immovable
property of the
collision
modifier attached to the first
model of the cast member named Scene to
TRUE
:
member("Scene").model[1].collision.immovable = TRUE
See also
collision (modifier)
ink
Usage
-- Lingo syntax
spriteObjRef
.ink
// JavaScript syntax
spriteObjRef
.ink;
Description
Sprite property; determines the ink effect applied to a sprite. Read/write.
Valid values of
ink
are as follows:
In the case of 36 (background transparent), you select a sprite in the Score and select a
transparency color from the background color box in the Tools window. You can also do this by
setting the
backColor
property.
If you set this property within a script while the playhead is not moving, be sure to use the Movie
object’s
updateStage()
method to redraw the Stage. If you change several sprite properties—or
several sprites—use only one
updateStage()
method at the end of all the changes.
Example
This statement changes the variable currentInk to the value for the ink effect of sprite (3):
-- Lingo syntax
currentInk = sprite(3).ink
// JavaScript syntax
var currentInk = sprite(3).ink;
0—Copy
32—Blend
1—Transparent
33—Add pin
2—Reverse
34—Add
3—Ghost
35—Subtract pin
4—Not copy
36—Background transparent
5—Not transparent
37—Lightest
6—Not reverse
38—Subtract
7—Not ghost
39—Darkest
8—Matte
40—Lighten
9—Mask
41—Darken
Summary of Contents for DIRECTOR MX 2004
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...