238
findEmpty()
Syntax
findEmpty(member
whichCastMember
)
Description
Function; for the current cast only, displays the next empty cast member position or the position
after the cast member specified by
whichCastMember
.
Example
This statement finds the first empty cast member on or after cast member 100:
put findEmpty(member 100)
findLabel()
Syntax
sprite(
whichFlashSprite
).findLabel(
whichLabelName
)
findLabel(sprite
whichFlashSprite
,
whichLabelName
)
Description
Function: this function returns the frame number (within the Flash movie) that is associated with
the label name requested.
A 0 is returned if the label doesn’t exist, or if that portion of the Flash movie has not yet been
streamed in.
findPos
Syntax
list
.findPos(
property
)
findPos(
list
,
property
)
Description
List command; identifies the position of the property specified by
property
in the property list
specified by
list
.
Using
findPos
with linear lists returns a bogus number if the value of
property
is a number and
a script error if the value of
property
is a string.
The
findPos
command performs the same function as the
findPosNear
command, except that
findPos
is
VOID
when the specified property is not in the list.
Example
This statement identifies the position of the property c in the list Answers, which consists of
[#a:10, #b:12, #c:15, #d:22]:
Answers.findPos(#c)
The result is 3, because c is the third property in the list.
See also
findPosNear
,
sort
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...