-- Lingo syntaxspriteObjRef.ink // JavaScript syntaxspriteObjRef.ink;
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.
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;
This statement gives sprite (i + 1) a matte ink effect by setting the ink effect of the sprite property to 8, which specifies matte ink:
-- Lingo syntax sprite(i + 1).ink = 8 // JavaScript syntax sprite(i + 1).ink = 8;
backColor, Sprite, updateStage()