| Syntax: |
rewind sprite whichFlashSprite |
| Type: |
Command |
| Description: |
Use this command to return a Flash movie sprite to frame 1. You can rewind a movie when it is stopped or when it is playing. |
| Example: |
This frame script checks to see if the Flash movie sprite in channel 5 is playing. If the movie is playing, the script continues to loop in the current frame. When the movie is finished, the sprite rewinds the movie (so the first frame of the movie will be showing on the stage) and allows the playback head to continue to the next frame. |
|
on exitFrame
if the playing of sprite 5 = TRUE then
go to the frame
else
rewind sprite 5
updateStage
end if
end
|
 |
|