Lingo Dictionary > G-K > goToFrame |
![]() ![]() ![]() |
goToFrame
Syntax
sprite(
whichFlashSprite
).goToFrame(
frameNumber
)
goToFrame(sprite
whichFlashSprite
,
frameNumber)
sprite(whichFlashSprite
).goToFrame(labelNameString
) goToFrame(sprite
whichFlashSprite
,
labelNameString)
Description
Command; plays a Flash movie sprite beginning at the frame identified by the frameNumber
parameter. You can identify the frame by either an integer indicating a frame number or by a string indicating a label name. Using the goToFrame
command has the same effect as setting a Flash movie sprite's frame
property.
Example
This handler branches to different points within a Flash movie in channel 5. It accepts a parameter that indicates which frame to go to.
on Navigate whereTo sprite(5).goToFrame(whereTo) end
![]() ![]() ![]() |