(This document last revised March 28, 2002)
Copyright © 1996-2002. Zeus Productions. All Rights Reserved.
Written by Bruce A. Epstein
A Stub Projector is a Director Projector that contains a simple movie that merely calls an external DIR or DXR file to do all the real work. Stub projectors are highly recommended for simplified development and distribution of all Director projects. An even more "advanced" type of Strub Projector, possible since Director 7 is a so-called "Shockwave Projector."
There are several advantages to a stub projector, all of which are significant.
In some cases you may want one self-contained package
that includes all the assets. In this case, you should use a Stub Projector
during development, and then build and retest your final projector that includes
the DIR file and CST files internally.
When you build the DIR files into the Projector, you can control the order
of the movies to optimize performance. You will need to do this manually
through your CD-burning software if you leave the files external to the
projector. Most CD-burning software, such as Toast, allow you to do this
easily.
Stub Projector should perform very similarly to
a projector containing all the assets, if not faster.
You will need to ensure that the files are placed on the CD in an optimal fashion.
If you have a large number of external files, such as several hundred, it may
slow down the Macintosh file system.. Try to reduce the number of external files
or put them into multiple subdirectories.. Be sure to specify exact paths, rather
than using "the searchpath", and place the files in an optimal order
when burning your CD-ROM.
You can also use the preLoadMovie command to load assets ahead of time.
Refer to the TechNote, "Creating Director Projectors for Mac and Windows" for tips on creating your actual projector. First, you will need to create your Director file to be used in the Projector. Refer to the discussion below.
Refer to the TechNote,
"Restoring the Projector's State" for
tips on restoring a user's place in a projector.
You can protect your DIR files by creating
protected "DXR" files that remain external to the projector. Select
"Update Movies" from Director's "Xtras" menu. Choose
the "Protect (Prevents Editing)" option to create protected DXR
files.
To create a Stub projector, you will first create a small Director movie,
that will be used to build the projector. It is very easy to create a Stub
movie yourself, or you can download the example
STUB.DIR file.
1. Create a new Director movie (the Stub movie) using Director's
"New...Movie
" option under the File
menu.
2. In the first frame of your Director movie, create a frame script
that goes to your first "real" movie. Assuming that the first
movie in your project is named "INTRO.DIR", use:
on exitFrame
go movie "INTRO"
end
By omitting the file extension, Director will look for the right file whether
it is named "INTRO.DIR", or "INTRO.DXR". This allows
you to use the same Projector without modification when you create protected
external DXR files. If you specifically use "INTRO.DIR" or "INTRO.DXR"
in your Lingo script, it won't work with both DIR and DXR files.
3. Set the stub movie's properties with Director's "Modify..Movie...Properties
"
option. Set the Stage Size and the Stage Background color as desired, plus
any other options as you see fit. Consult Director's documentation for details
on these options, and refer to the TechNote, "Creating Director Projectors for Mac and Windows"
for additional tips.
4. Test the Director movie and Save it as "STUB.DIR"
5. Create your projector for each platform:
Create Projector...
"
from Director's File
menu.Options
"
button in the Create Projector dialog box.
Refer to the TechNote, "Creating
Director Projectors for Mac and Windows" for tips on creating your
actual projector.
Congratulations! You have built a Stub Projector which should serve you
well!
Home (Spotlight) | Table of Contents | Links
| Contact Info
Place an Order | Products
for Sale | Licensing | Downloads
TechNotes | FAQs
| E-Mail Zeus | GuestBook
| Glossary
Copyright © 1996-2002. Zeus Productions. All Rights Reserved.