Rewind The Quicktime Sprite - MACROMEDIA DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR Getting Started

Hide thumbs Also See for DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR:
Table of Contents

Advertisement

Digital video movies use a timeline instead of a Score. The timing of the video playback is tied
closely to the sound track of the video. For example, if the video has a sound track, 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 sound track. 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.
Now you are ready to add scripts to the bitmap graphic buttons for controlling the digital video
playback. The bitmap graphic buttons are a Play button, a Pause button, and a Rewind button.
For these buttons, you use some new scripting terms, including the
properties of 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
movieTime
the screen. The
movieTime
movie displays the very first frame of video, the
played, the
movieTime
equals 180. By setting the
to a different frame.

Rewind the QuickTime sprite

You can rewind the QuickTime sprite by setting its
In the Score, display frames 55 through 64.
1
In frames 55 through 64, right-click (Windows) or Control-click (Macintosh) the Rewind
2
button sprite.
Select Script from the context menu.
3
The Script window opens with a default
On the second line of the handler, type the following Lingo to rewind the QuickTime sprite:
4
sprite(1).movieTime = 0
Press Enter (Windows) or Return (Macintosh).
5
On the third line of the handler, type the following Lingo:
6
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
In the Name text box at the top of the Script window, type RewindScript.
7
Close the Script window, and save your movie.
8
property indicates the time, within the digital video, that currently appears on
is measured in ticks, or 60ths of a second. For example, when the
equals 60. When 3 seconds of the video have played, the
to a number that you select, you can make the video jump
movieTime
property indicates the speed at which the QuickTime sprite is playing. When
movieRate
property.
movieTime
is 0. When 1 second of the video has
movieTime
movieTime
handler already entered.
on mouseUp
is 0.
Writing scripts to control the movie
and
movieRate
movieTime
movieTime
to 0.
73

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents