endFrame
755
Example
For this example, assume that the cast member named MyMember contains a model that uses the
model resource named Sphere4, whose
endAngle
value is 310, leaving an opening of 50°. The
handler
closeSphere
closes that opening in a way that makes it look like it is sliding shut. The
repeat loop changes the
endAngle
value of the sphere 1° at a time. The
updateStage
command
in the repeat loop forces the Stage to redraw after every 1° increment.
on closeSphere
MyAngle = member("MyMember").modelresource("Sphere4").endAngle
repeat with r = 1 to 50
MyAngle = M 1
member("MyMember").modelresource("Sphere4").endAngle = MyAngle
updateStage
end repeat
end
See also
state (3D)
endColor
Usage
-- Lingo syntax
memberObjRef
.endColor
// JavaScript syntax
memberObjRef
.endColor;
Description
Vector shape cast member property; the ending color of a gradient shape’s fill specified as an
RGB value.
endColor
is only valid when the
fillMode
is set to
#gradient
, and the starting color is set
with
fillColor
.
This property can be tested and set.
To see an example of
endColor
used in a completed movie, see the Vector Shapes movie in the
Learning/Lingo Examples folder inside the Director application folder.
See also
color()
,
fillColor
,
fillMode
endFrame
Usage
-- Lingo syntax
spriteObjRef
.endFrame
// JavaScript syntax
spriteObjRef
.endFrame;
Description
Sprite property; returns the frame number of the end frame of the sprite span. Read-only.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...