
554
Example
The following frame script checks whether the Flash movie sprite in the sprite the behavior was
placed in is playing and, if so, continues to loop in the current frame. When the movie is finished,
the sprite rewinds the movie (so the first frame of the movie appears on the Stage) and lets the
playhead continue to the next frame.
property spriteNum
on exitFrame
if sprite(spriteNum).playing then
go the frame
else
sprite(spriteNum).rewind()
updateStage
end if
end
rgb()
Syntax
rgb(
redValue
,
greenValue
,
blueValue
)
Description
Function and data type; defines a color based on a the value specified for red, green, and blue. The
range for each of the threee color values is 0 - 255.
Example
This Lingo displays the color of sprite 6 in the Message window, and then sets the color of sprite
6 to a new RGB value:
put sprite(6).color
-- rgb( 255, 204, 102 )
sprite(6).color = rgb(122, 98, 210)
See also
color()
right
Syntax
sprite(
whichSprite
)
.
right
the right of sprite
whichSprite
Description
Sprite property; indicates the distance, in pixels, of the specified sprite’s right edge from the left
edge of the Stage.
When a movie plays back as an applet, this property’s value is relative to the upper left corner of
the applet.
Sprite coordinates are expressed relative to the upper left corner of the Stage.
This property can be tested and set.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...