Digital video movies use a timeline instead of a Score. The timing of the video playback is tied
closer to the soundtrack of the video. For example, if the video has a soundtrack, the timing of the
video and sound must remain synchronized during the entire playback of the video. For this
reason, digital videos will skip frames if necessary to keep up with the soundtrack. On slower
computers, several frames might be skipped during video playback. This kind of animation is
called time-based. These differences are the reason you navigate a Director movie by jumping to
different frames in the movie, and you navigate a digital video by jumping to different times
within the video.
Add scripts for video control
Now you're ready to add scripts to the bitmap graphic buttons for controlling the digital video
playback. For these buttons, you'll use some new Lingo terms. There is a Play button, a Pause
button, and a Rewind button. They will use the
QuickTime sprite. By changing the values of these properties with Lingo, you change the way the
video plays on the Stage.
When the user navigates to the sound and video scene from a different scene, the digital video
plays from start to finish once. To play the video again without first leaving the scene, you need to
rewind it. You rewind the video by setting its
The
property indicates the time, within the digital video, that currently appears on
movieTime
the screen. The
movieTime
movie displays the very first frame of video, the
played, the
movieTime
180. By setting the movieTime to a number of you select, you can make the video jump to a
different frame.
Rewind the QuickTime sprite
You can rewind the QuickTime sprite by setting its
In the Score, right-click (Windows) or Control-click (Macintosh) the Rewind button sprite in
1
channel 4, frames 55 through 64.
Select Script from the context menu.
2
The Script window opens with a default
On the second line of the handler, type the following Lingo to rewind the QuickTime sprite:
3
sprite(1).movieTime = 0
Press Enter (Windows) or Return (Macintosh).
4
On the third line of the handler, type the following Lingo:
5
sprite(1).movieRate = 0
The
movieRate
the video is stopped, the
The result looks like this:
On mouseUp me
sprite(1).movieTime = 0
sprite(1).movieRate = 0
end
is measured in ticks, or 60ths of a second. For example, when the
equals 60. When 3 seconds of the video has played, the
property indicates the speed at which the QuickTime sprite is playing. When
is 0.
movieRate
and
movieRate
movieTime
property.
movieTime
is 0. When 1 second of the video has
movieTime
to 0.
movieTime
handler already entered.
on mouseUp
properties of the
movieTime
Director MX Basics Tutorial
equals
95
Need help?
Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?