386
modelUnderLoc
Syntax
member(
whichCastmember
).camera(
whichCamera
).\
modelUnderLoc(
pointWithinSprite
)
Description
3D command; returns a reference to the first model found under the point specified by
pointWithinSprite
within the rect of a sprite using the referenced camera. The location
pointWithinSprite
is relative to the upper left corner of the sprite, in pixels.
This command returns
void
if there is no model found under the specified point.
For a list of all of the models found under a specified point, and detailed information about them,
see
modelsUnderLoc
.
Example
The first line in this handler translates the location of the cursor from a point on the Stage to a
point within sprite 5. The second line determines the first model under that point. The third line
displays the result in the message window.
on mouseUp
pt = the mouseLoc - point(sprite(5).left, sprite(5).top)
m = sprite(5).camera.modelUnderLoc(pt)
put m
end
See also
modelsUnderLoc
,
modelsUnderRay
modified
Syntax
member(
whichCastMember
).modified
the modified of member
whichCastMember
Description
Cast member property; indicates whether the cast member specified by
whichCastMember
has
been modified since it was read from the movie file.
•
When the
modified
member property is
TRUE
(
1
), the cast member has been modified since it
was read from the movie file.
•
When the
modified
member property is
FALSE
(
0
), the cast member has not been modified
since it was read from the movie file.
The
modified
member function always returns
FALSE
for a cast member in a movie that plays
back as an applet.
Example
This statement tests whether the cast member Introduction has been modified since it was read
from the movie file:
return member("Introduction").modified
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...