319
Example
In this example, tBox is the transform of the model named Box, and tSphere is the transform of
the model named Sphere. The third line of the example interpolates the transform of Box halfway
to the transform of Sphere.
tBox = member("3d world").model("Box").transform
tSphere = member("3d world").model("Sphere").transform
tBox.interpolateTo(tSphere, 50)
See also
interpolate()
intersect()
Syntax
rectangle1. Intersect(
rectangle2
)
intersect(
rectangle1
,
rectangle2
)
Description
Function; determines the rectangle formed where
rectangle1
and
rectangle2
intersect.
Example
This statement assigns the variable
newRectangle
to the rectangle formed where rectangle
toolKit intersects rectangle Ramp:
newRectangle = toolKit.intersect(Ramp)
See also
map()
,
rect()
,
union()
interval
Syntax
member(
whichCursorCastMember
)
.
interval
the interval of member
whichCursorCastMember
Description
Cursor cast member property; specifies the interval, in milliseconds (ms), between each frame of
the animated color cursor cast member
whichCursorCastMember
. The default interval is 100 ms.
The cursor interval is independent of the frame rate set for the movie using the tempo channel or
the
puppetTempo
Lingo command.
This property can be tested and set.
Example
In this sprite script, when the animated color cursor stored in the cast member named Butterfly
enters the sprite, the interval is set to 50 ms to speed up the animation. When the cursor leaves
the sprite, the interval is reset to 100 ms to slow down the animation.
on mouseEnter
member("Butterfly").interval = 50
end
on mouseLeave
member("Butterfly").interval = 100
end
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...