
251
Example
The following frame script checks to see if a Flash movie has finished playing (by checking to see
if the current frame is equal to the total number of frames in the movie). If the movie has not
finished, the playhead continues to loop in the current frame; when the movie finishes, the
playhead continues to the next frame. (This script assumes that the movie was designed to stop on
its final frame and that it has not been set for looped playback.)
on exitFrame
if sprite(5).frame < sprite(5).member.frameCount then
go to the frame
end if
end
frameCount
Syntax
member(
whichFlashMember
)
.
frameCount
the frameCount of member
whichFlashMember
Description
Flash cast member property; indicates the number of frames in the Flash movie cast member. The
frameCount
member property can have integer values.
This property can be tested but not set.
Example
This sprite script displays, in the Message window, the channel number and the number of frames
in a Flash movie:
property spriteNum
on beginSprite me
put ""The Flash movie in channel"" && spriteNum && has"" &&
sprite(spriteNum).member.frameCount && ""frames.""
end
frameLabel
Syntax
the frameLabel
Description
Frame property; identifies the label assigned to the current frame. When the current frame has no
label, the value of the
frameLabel
property is 0.
This property can be tested at any time. It can be set during a Score generation session.
Example
The following statement checks the label of the current frame. In this case, the current
frameLabel
value is Start:
put the frameLabel
-- "Start"
See also
labelList
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...