
249
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.
Examples
The hexadecimal value for pure red, FF0000, is equivalent to 16711680 in decimal numbers.
This statement specifies pure red as a cast member’s forecolor:
member(20).foreColor = 16711680
This statement changes the color of the field in cast member 1 to the color in palette entry 250:
member(1).foreColor = 250
The following statement sets the variable
oldColor
to the foreground color of sprite 5:
oldColor = sprite(5).foreColor
The following statement makes 36 the number for the foreground color of a random sprite from
sprites 11 to 13:
sprite(10 + random(3)).foreColor = 36
The following statement sets the
foreColor
of word 3 of line 2 of text member myDescription to
a value of 27:
member("myDescription").line[2].word[3].forecolor = 27
See also
backColor
,
color (sprite and cast member property)
forget()
Syntax
timeout("
timeoutName
").forget()
forget(timeout("
timeoutName
"))
Description
This timeout object function removes the given
timeoutObject
from
the timeoutList
, and
prevents it from sending further timeout events.
Example
This statement deletes the timeout object named AlarmClock from
the timeoutList
:
timeout("AlarmClock").forget()
See also
timeout()
,
timeoutHandler
,
timeoutList
,
new()
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...