foreColor
Usage
-- Lingo syntax
spriteObjRef.foreColor
// JavaScript syntax
spriteObjRef.foreColor;
Description
Sprite property; returns or sets the foreground color of a sprite. Read/write.
It is not recommended to apply this property to bitmap cast members deeper than 1-bit, as the
results are difficult to predict.
It is recommended that the newer
Example
The following statement sets the variable
-- Lingo syntax
oldColor = sprite(5).foreColor
// JavaScript syntax
var oldColor = sprite(5).foreColor;
The following statement makes 36 the number for the foreground color of a random sprite from
sprites 11 to 13:
-- Lingo syntax
sprite(10 + random(3)).foreColor = 36
// JavaScript syntax
sprite(10 + random(3)).foreColor = 36;
See also
backColor, color(),
frame
Usage
-- Lingo syntax
_movie.frame
// JavaScript syntax
_movie.frame;
Description
Movie property; returns the number of the current frame of the movie. Read-only.
Example
This statement sends the playhead to the frame before the current frame:
-- Lingo syntax
_movie.go(_movie.frame - 1)
property be used instead of the
color
oldColor
Sprite
foreColor
to the foreground color of sprite 5:
property.
frame
783
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