Macromedia
content is handled by the DirectorPlayer. Create
a protected movie (".dxr"), Shockwave movie (".dcr"), or use your Director
movie (".dir"). Make a ".swf" file from your Flash presentation.
Each of these is opened by the DirectorPlayer.
This unique playback system
tells your presentation where to find linked media files, and provides
a commercial-strength platform for your content It's fast, cross-platform,
and user-customizable.
Xtras
ï Customize ï Variables
Easily Manage Xtras
DiskJockey
provides a convenient place to keep Xtras needed by your project.
Xtras in the folder "...DiskJockey folder...\Components\System\Xtras\"
are added to every disk you produce. Put Xtras needed by your program
into this folder.
Customize the DirectorPlayer
The DirectorPlayer is a stub
projector created from the files "DirectorPlayer.dir" and "Init.dir".
Edit these files to customize DiskJockey's Macintosh and Windows stub projectors.
The current DirectorPlayer is a Director MX movie.
When
compiling new projectors, note that projectors launch faster if Xtras are
not embedded. To minimize startup time, follow this procedure:
1.
Open your Director movie
2.
Go to "Modify > Movie > Xtras..." from the menu
3.
Select each Xtra, and press "Remove"
4.
Go to "File > Save and compact"
5.
Go to "Modify > Movie > Xtras...", and uncheck the
"include in projector" box for each Xtra in the list
6.
Save the project
7.
Add Xtras needed by your program to the "Components\System\Xtras\"
folder in the DiskJockey program folder. |
BuddyAPI is needed for several
functions in the DirectorPlayer, and must be installed prior to editing.
DiskJockey Variables
-
Although DiskJockey was
designed for producers with no programming experience, some features have
been provided for advanced users. The following is a list of global
variables that can be used for enhanced programming. These variables
are available to your movie at runtime.
-
| Variable |
Value/Example |
Description |
| driveLetter (Win) |
string: "D", "E",
etc. |
Letter of the CD-ROM drive |
| VolumeName |
string: "MyProject" |
CD-ROM volume name |
| SetupType |
integer: 0 or 1 |
installation type:
"None" or "Standard" |
| DestFolder |
string: "C:\Program Files\My
Project\" |
The path to the program
folder |
| HDFolderExists |
integer: 0 or 1 |
Whether the installation
has occurred |
| HDSrcFolderExists |
integer: 0 or 1 |
Whether a "Total" install
has occurred |
| startupDisk (Mac) |
string: "Macintosh
HD:" |
Macintosh startup disk |
| prgmName |
string: "Project 2004" |
Name of the CD-ROM program |
| DirSource |
string: "D:\Part1.dxr" |
Path to presentation file
or URL |
| MonitorHRez |
integer: 640 |
Monitor horizontal resolution |
| MonitorVRez |
integer: 480 |
Monitor vertical resolution |
Examples:
The
Windows CD-ROM driveLetter can be almost any letter. The first example
demonstrates how your installed projector opens a file on the CD-ROM when
a button is clicked.
on
mouseUp
global driveLetter
open driveLetter & ":\SomeFolder\Program Help.PDF"
end
mouseUp
In
the next example, a high-resolution video file is used by the projector
if the program has been completely installed. Otherwise, a smaller
video is used, which is on the CD-ROM:
on
exitFrame
global
HDSrcFolderExists, driveLetter, DestFolder
if HDSrcFolderExists = 1 then
set the fileName of member "Movie" = DestFolder & "Movies\Big-Movie.mov"
else
set the fileName of member "Movie" = driveLetter & ":\Movies\Small-Movie.mov"
end if
end
exitFrame
Top
of Page
|