Using Director > Using Interactive Media Types > Playing back Flash movies with Lingo > Controlling Flash movie playback with Lingo

 

Controlling Flash movie playback with Lingo

You can use Lingo to control a Flash movie's tempo, to specify which frame plays, and to start, stop, pause, and rewind the Flash movie.

To control the tempo of a Flash movie, set the fixedRate and playBackMode properties. See fixedRate and playBackMode.

To determine the original frame rate of a Flash movie, test the frameRate property. See frameRate.

To determine the number of frames in a Flash movie, test the frameCount property. See frameCount.

To determine the frame number associated with a label in a Flash movie, use the findLabel() function. See findLabel().

To play a Flash movie starting from a specified frame, set the frame property or use the goToFrame command. See frame (sprite property) and goToFrame.

To set whether a Flash movie starts playing immediately when the Flash sprite appears on the Stage, set the pausedAtStart property. See pausedAtStart.

To check whether a Flash movie is playing or paused, test the playing property. See playing.

To rewind a Flash movie to frame 1, use the rewind sprite command. See rewind sprite.

To stop a Flash movie at its current frame, use the stop command. See stop (Flash).

To stop a Flash movie at its current frame but let any audio continue to play, use the hold command. See hold.