Add A Script That Plays The Quicktime Sprite; Add A Script That Pauses The Quicktime Sprite; Control Sound With Script - 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

Rewind and play your movie.
9
In the start scene, click the Go to Sound and Video button.
10
The movie jumps to the sound and video scene, and the QuickTime sprite begins to play.
When the QuickTime sprite finishes playing, click the Rewind button on the Stage. The
11
QuickTime sprite rewinds to the beginning of the video.

Add a script that plays the QuickTime sprite

When the video is playing normally, the
property to the Play button. This time, scripting makes the QuickTime sprite play when the user
clicks the Play button in the movie on the Stage.
In the Score, right-click (Windows) or Control-click (Macintosh) the Play button sprite in
1
frames 55 through 64.
Select Script from the context menu.
2
In the Script window, on the second line of the handler, type the following Lingo:
3
sprite(1).movieRate = 1
This script starts the QuickTime sprite playing at normal speed.
In the Name text box at the top of the Script window, type PlayScript.
4
Close the Script window, and save your movie.
5

Add a script that pauses the QuickTime sprite

When the video is paused, the
by using numbers greater than 1 and at slow speed by using numbers less than 1.
In the Score, right-click (Windows) or Control-click (Macintosh) the Pause button sprite in
1
frames 55 through 64.
Select Script from the context menu.
2
On the second line of the handler in the Script window, type the following Lingo:
3
sprite(1).movieRate = 0
This Lingo pauses the QuickTime sprite.
In the Name text box at the top of the Script window, type PauseScript.
4
Close the Script window, and save your movie.
5
Now all your video control buttons work. Rewind and play your movie to test the buttons.
6

Control sound with script

The sound and video scene plays the sound file that you placed in the Score, but only the first
time you go to the scene. You can add script to make the music play each time you play the
video. You can also add script to make a short sound effect play when the video control buttons
are clicked.
To control sound with script, you use commands that are specifically intended for use with
sounds. In this tutorial, the first step is to add Lingo to play the track1 sound when the video
plays a second time. For this task, add a
have already written in Lingo.
74
Chapter 4: Building Your First Basic Movie
is 1. You can now add the
movieRate
is 0. You can play a video at faster than normal speed
movieRate
function to the PlayScript cast member that you
play
movieRate

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