
442
Chapter 22: Managing and Testing Director Projects
•
Organize the cast members in your cast in a logical way. You might choose to group all the cast
members of a particular type together, or you might choose to group the cast members from
each scene together. Choose a system that works for you and that will make it easy to find cast
members when your cast becomes large. You can also choose to keep groups of cast members in
separate casts.
•
When referring to cast members, sprites, and frames in scripts, use the name of the cast
member or sprite or the name of a frame marker. This avoids the need to change your code if
you need to rearrange cast members, sprites, or frames during the project.
For example, the following script refers to a cast member by its cast member number:
member(16).text = "Good planning makes Director projects easy."
If the text cast member 16 has to be moved in the cast, the script becomes invalid.
Instead, use the following script:
member("Output_text").text = "Good planning makes Director projects easy."
Naming sprites makes changes to your script even easier. For example, the following script
refers to a sprite by its number:
sprite (1).text
Instead, use the following script:
sprite("input").member.text
When you add a marker to a frame and use the marker name to refer to the frame, you can
move the marker without breaking the script.
The following script refers to a frame by its number:
_movie.go(27)
It is better to add a marker to the frame and use the marker name, as in the following script:
_movie.go("Main_menu")
•
During work sessions, save your movie file often. Save a copy of the movie after each
milestone, such as a day of work or after adding a significant new feature or section. This way,
if problems arise, you can easily compare the current version of the file to a slightly older
version to locate the source of the problem. Keep several copies of your file at different stages of
development in case you need to go back several steps.
Summary of Contents for DIRECTOR MX 2004-USING DIRECTOR
Page 1: ...DIRECTOR MX 2004 Using Director...
Page 16: ...16 Chapter 1 Introduction...
Page 82: ...82 Chapter 3 Sprites...
Page 98: ...98 Chapter 4 Animation...
Page 134: ...134 Chapter 5 Bitmaps...
Page 242: ...242 Chapter 10 Sound and Synchronization...
Page 274: ...274 Chapter 11 Using Digital Video...
Page 290: ...290 Chapter 12 Behaviors...
Page 302: ...302 Chapter 13 Navigation and User Interaction...
Page 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Page 392: ...392 Chapter 16 Working with Models and Model Resources...
Page 418: ...418 Chapter 18 Movies in a Window...
Page 446: ...446 Chapter 22 Managing and Testing Director Projects...