Overview of Macromedia Director MX 2004
Overview of Macromedia Director MX 2004
Director
1
C H A P T E R
✦ ✦ ✦ ✦
AL
In This Chapter
RI
Director
with a request much like the following:
TE
What’s new in
“We’re announcing our new product at a major trade show in
Director MX 2004
six weeks and we want to have an interactive kiosk for the
booth. We also want to hand out CD-ROMs that highlight the
MA
product’s cool new features. Oh yeah, we also need to have a Looking at windows,
Web site that goes along with it, and a version with pricing menus, and shortcuts
information to put on our sales reps’ laptops. Can you get this
done for us?” Using Director’s
D
Help system
Welcome to the fast-paced world of multimedia authoring. The
TE
Director makes this process easier (and may help you get at
least a couple hours of sleep each night) by enabling you to
create sophisticated multimedia applications in a single
authoring environment and to output separate versions of
your application that are optimized for different computer
platforms and playback media.
a unique product — easy and intuitive enough for many people to create a reason-
ably impressive application the first time they sit down at the computer and use the
program, yet powerful enough to let developers put together sophisticated multi-
media applications with 3D interfaces, database access, and Internet connectivity.
Director is heavily graphics oriented, making it an ideal tool for graphic designers,
animators, and illustrators. But it also includes scripting capabilities that give you
precise control over every aspect of the program. Director is the ultimate left-brain/
right-brain tool.
Table 1-1
New Features and Improvements in Director MX 2004
Feature What’s New or Improved
DVD-Video You can now embed, control, and play back DVD-Video content inside
Director movies.
Macromedia You can now integrate Director with Macromedia server technologies,
server technologies such as Macromedia ColdFusion MX 6.1 and Macromedia Flash
integration Communication Server MX.
Macromedia You can use content from other Macromedia Studio MX 2004
Studio MX 2004 products, such as Macromedia Flash MX 2004 and Macromedia
integration Fireworks MX 2004, in your Director movies. In addition, Director now
shares a similar interface with those products.
Named sprites Sprites and channels can now have custom names, and absolute
and channels references to sprites are no longer necessary. This feature means that
you can move sprites on the Score without worrying about broken
scripts.
Pre-built You can now use pre-built Macromedia Flash MX 2004 components in
components your Director movies. You can drop components, such as calendars
and user-interface elements, into movies to cut the time that it takes
to develop interactive features.
Publishing to Mac After you complete a movie, you can now publish across platforms in
and Windows in one step, creating either stand-alone applications (projectors) or
one step Web-based Shockwave content that runs on both Mac and Windows.
Reference panel A new reference help panel is now available in Director to simplify
getting help with using Director, behaviors, Xtra extensions, and
application programming interfaces (APIs) for both Lingo and
JavaScript syntax.
Scripting in Director now supports scripting in JavaScript syntax, in addition to
JavaScript syntax Lingo.
Workspace You can arrange your workspace in multiple configurations and save
customization each workspace for later use.
6 Part I ✦ Working with Director
Note Most older Director movies will continue to work in Director MX 2004, although
they must first be opened and then saved in Director MX 2004 format if you want
to take advantage of some of the new features such as JavaScript syntax. In a few
cases, you may find that really old Director movies (such as those created prior to
Director 5) cannot be opened by Director MX 2004, but anything that old is prob-
ably due for replacement anyway.
Multimedia is much the same: Your theater, in this case, is Director, and its support-
ing structures are the dialog boxes, panels, menu items, and other elements that
make up the program itself. You need to get to know Director before you start build-
ing your own world with it.
Director is a fairly complex program. Although using any of its features is not diffi-
cult, there are plenty of features to use. Indeed, most of the first part of this book
focuses on the various dialog boxes and panels that Director uses. This complexity
is the result of Director’s role as an integrating program. Its primary purpose is to
bring a number of different kinds of elements together into one package. Each ele-
ment has its own particular characteristics that require special handling.
Tip When Director is first launched, it remembers the last panels that were open in the
preceding session. If you want to return to the original set that appeared when
you first opened Director, choose Window ➪ Panel Sets ➪ Default.
The Score is divided into up into 1,000 sprite channels. The 1,000 numbered chan-
nels are for graphic and text sprites; they show the position of each element and
their relationships to one another on the Stage at each frame of the movie. Five
other channels control the tempo, palette, sound, and transition, as well as instruc-
tions that control the sprites (called a script), which are applied to that particular
frame of the movie. Think of a sprite as a cast member that has been brought on
the Stage to perform a specific task; each sprite occupies a sprite channel. A sprite
channel is very similar to the cels used in traditional animation. You can stack up
many layers of cels on the Stage to create a multilayered animation: the sky, distant
mountains, a house, a character in front of the house, and so on. Each of these ele-
ments can be moved or switched to a different graphic, but they roughly corre-
spond to discrete sets of objects.
Sprites are drawn in the order in which they appear in the Score. A sprite in sprite
channel 1 (let’s call it the sky sprite) will appear behind the far mountains in sprite
channel 2, which will appear behind the near mountains in sprite channel 3, and so
forth.
Tip You can change the order in which the sprites are drawn on the Stage by using
Director’s scripting language. This technique is covered in Chapter 16.
Figure 1-3: The Cast panel contains the various elements that
you use to make up your movie.
Tip By default, the Cast panel automatically docks at the bottom edge of the Score
panel. Drag the Gripper (the two columns of dots at the left edge of each panel’s
title bar) to dock or undock panels.
One way to think of the distinction between the cast members and sprites is to
return to the theatrical metaphor. To put on a theatrical presentation, you need to
have actors to play the roles of the characters, technicians to control the lighting,
sound, and special effects to enhance the production. The sprite is the role or func-
tion that the actor or backstage technician will perform. The cast members are the
actors and technicians that will perform the tasks needed to put on the production.
In technical terms, a sprite is an instance of a cast member.
The Cast and cast members are discussed in greater detail in Chapter 2.
Note Macromedia is somewhat inconsistent in its naming scheme. You may see the
terms panel, palette, or even window used to describe the various windows that
you use in Director. Don’t allow this to confuse you. All these objects function sim-
ilarly no matter what they’re called.
Chapter 1 ✦ Introducing Director 9
Because text is so important in multimedia, Director can actually edit text in two
different ways, as well as use externally generated text. The two text editors are
discussed in Chapter 4.
Finally, Director supports external editors for most types of media — graphics
(Chapter 2), sound (Chapter 5), and video (Chapter 6).
Figure 1-4 shows the Window menu in Director MX 2004. You use this menu to open
the various panels that you use.
Library Palette
New Cast Save All Copy Rewind Play Text Window Message Window
Import Undo Cast Window Paint Window
Table 1-2
Director MX 2004 Toolbar
Icon Tool Function
Save All Saves the movie and all the Cast windows.
Paste Pastes the object on the Clipboard into the selected space.
Tip Don’t worry, you don’t have to memorize all these toolbar icons right away.
Director makes use of another Windows convention: ToolTips. When you place
your mouse pointer over an icon, button, or similar interface element for more
than half a second, Director displays a small text box that contains a one- or two-
word description of the item.
See Table 1-3 for a summary of functions available in the Tool palette.
Chapter 1 ✦ Introducing Director 13
Table 1-3
Floating Tool Palette Functions
Icon Tool Function
Continued
14 Part I ✦ Working with Director
Tip The Library palette is basically just a collection of Cast windows, so you can add
anything to the Library palette that can be contained in a Cast window. This can be
very useful for any commonly used artwork, as well as for behaviors that you don’t
want to be edited accidentally. To add your own elements to the Library palette,
create a new, unlinked Cast window that contains behaviors and graphics, save it,
and then drag the Cast file into the folder called LIBS, which is found in the
Director application folder.
Inspectors
You use inspectors to view and modify the attributes of text cast members, sprites,
and behaviors (scripts). For example, Figure 1-8 shows the Property Inspector.
There are four types of inspectors in Director; each performs a specific task:
✦ Property Inspector: Use the Property Inspector to display the current proper-
ties of any selected element, including the Stage, as well as the active movie.
You can adjust any available properties of nearly every element in your movie
by using this window.
✦ Behavior Inspector: Use the Behavior Inspector to create new behaviors
(scripts) and modify existing ones.
✦ Text Inspector: Use the Text Inspector to format text and add hypertext links.
✦ Memory Inspector: The Memory Inspector displays the amount of memory
(RAM) that is being used by the Director application and the elements con-
tained in the movie.
The various aspects of each Inspector are discussed in later chapters that relate to
their functions.
Pop-up menus
Another trick in the Director MX 2004–interface arsenal is the deployment of those
handy context-sensitive pop-up menus (see Figure 1-9). You can activate pop-up
menus for most elements in Director, including cast members, sprites, behaviors,
scripts, and even the toolbar. A pop-up menu contains operations that are only
appropriate for the selected item. The contents of contextual menus vary from item
to item. They are intended to provide a list of operations or commands that you
can perform on that item, in the current context of the software.
Tip On a Macintosh mouse that lacks the essential right mouse button, you bring pop-
up contextual menus to life by holding down the Ctrl key and clicking the mouse
button over an interface element or object.
Chapter 1 ✦ Introducing Director 17
This book discusses menus and their content as they become relevant. Table 1-4
summarizes the content of each menu in the menu bar.
Table 1-4
The Director Menus
Menu Name Functions Handled
Docking options
With the great abundance of panels you find in Director MX 2004, it becomes very
important to have a means of organizing those panels so that you can work more
efficiently. One method of accomplishing this goal is to use the docking options that
are available. For example, earlier you learned that the Score and Cast panels are
automatically docked in the default panel layout. Because you often use these two
panels in association with each other, this docking arrangement is very convenient.
The Director panels fall into two general groups: document windows and tool win-
dows. You can dock together panels that are of the same type, but you cannot dock
ones that are not of the same type. So, for example, you can dock the Cast and the
Stage or the Behavior Inspector and the Property Inspector, but you cannot dock the
Stage and the Property Inspector together. You can also dock Movie in a Window
(MIAW) in Director MX 2004. See Chapter 24 for more information on MIAWs.
Tip You can save your favorite panel layouts by choosing Window ➪ Panel Sets ➪ Save
Panel Layout.
Each Director panel also has an expander arrow just to the left of the panel’s name
in the title bar. You can click the expander arrow to expand or collapse the panel as
needed. When the panel is expanded, the expander arrow points downward. When
the panel is collapsed, the expander arrow points to the right.
Xtras are analogous to plug-ins for browsers and for programs such as Adobe
Photoshop. Some Xtras — such as the fileIO Xtra, which adds file reading and writ-
ing capabilities — are produced by Macromedia itself. Third-party software design-
ers produce others. Some of these are for adding functionality to Director, while
others are designed to open up access to system capabilities.
You access cast members that are created by Xtras, such as fonts and animated
GIFs, by choosing Insert ➪ Media Element. These cast members are then imported
into the Cast window and are nearly identical to other cast members. You can set
their properties with standard dialog boxes, and open external media editors for
editing.
Chapter 1 ✦ Introducing Director 19
Note Director MX 2004 includes an option that enables end users to download Xtras
used in the movie that are not installed on their system via the Internet from a
secure server. This capability enables movies to be smaller by allowing Xtras to be
downloaded independently of the movie.
Using Xtras
When you create your own applications, you must distribute these Xtras as well.
As long as the Xtras folder is in the same directory as the application, all the Xtras
contained within it will be added.
How you invoke an Xtra depends on its type. For example, you access a Photoshop
filter by choosing Xtras ➪ Filter Bitmap, which then lists all the available filters cur-
rently in the Xtras folder. Many other Xtras are added using the Scripting Xtras but-
ton in the Script panel. Xtras are covered in several chapters throughout this book
where they’re relevant.
You can link cast libraries to a movie by choosing Modify ➪ Movie ➪ Casts. Having
a linked file of any sort means that the information about that file is kept in a sepa-
rate file rather than within the Director movie itself. For example, if you linked a
bitmap image, every time Director started up it would load that image from the
disk, rather than from its own internal resources. This approach has the advantage
of making it easier to work with dynamic files, or pictures that change on a regular
basis. The disadvantage comes from the location of the file; the picture (or other
resource) isn’t already contained in the movie, so it has to be processed into a
Director cast member. Depending on the size and type of the image, this process
can involve an appreciable wait.
20 Part I ✦ Working with Director
Cross- For more details on bitmap images, cast libraries, and resource linking, see
Reference
Chapters 2, 3, and 6, respectively.
Fortunately, the designers of Director have provided assistance with the program’s
complexity in the form of a remarkably comprehensive help system. This system
can aid everyone from beginners to advanced professionals.
You access the help system by choosing Help ➪ Director Help or by pressing the F1
key. From here, you can go get help on most basic concepts in Director, including
Lingo scripting and incorporating Director movies into Web pages.
Tip You can find online help with Director by choosing Help ➪ Director Support Center.
This will open the Director Support Center Web site in your browser so that you
can find technical notes, examples, and tutorials.
Summary
Director is the most comprehensive multimedia authoring tool on the market today.
It enables you to create sophisticated multimedia applications for virtually every
medium that exists to deliver interactive content. You use Director to create and
combine all the elements commonly used in multimedia applications — text, graph-
ics, animation, sound, and video — and then add interactivity and multiuser func-
tionality with its powerful scripting languages (Lingo and JavaScript syntax).
Before moving on to Chapter 2, review some of the things that were covered in this
chapter:
✦ Director uses a theatrical metaphor for its interface. A Director file is called
a movie, the window that the movie plays in is called the Stage, resources
used in a movie are called cast members, sprites on the Stage are choreo-
graphed using the Score, and commands that tell the sprites what to do are
called scripts.
✦ Nearly every function in Director has a floating window associated with it.
This includes bitmap editing (the Paint panel), Bézier vector graphics (the
Vector Shape panel), text creation (the Text panel and the Field panel), shapes
(the Tool Palette), sprites (the Score), and navigation (the Control Panel).
✦ Director is truly a right-brain/left-brain application. It combines a graphical
interface that is understandable to graphic artists and animators with a pow-
erful scripting language that enables programmers to create incredibly com-
plex applications.
✦ Xtras are individual components (like plug-ins) that add extra functionality
to the program. They are created by Macromedia and third-party developers.
✦ Director has a context-sensitive help system as well as a comprehensive
Web site that make it easier to learn how to use the program and to keep
current with the most recent features. ToolTips is another feature that
makes Director more understandable by giving a brief description of an item
while the mouse cursor pauses over it.
✦ ✦ ✦