User Guide

frame 783
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
color property be used instead of the foreColor property.
Example
The following statement sets the variable oldColor to the foreground color of sprite 5:
-- 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(), Sprite
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)