Close the script window and give it a test run. See what happens now
when you select About This Program... If it worked, you're ready to
save the file and compile it. Select Save from the FILE menu and then
select Create Projector...
Follow the prompts Director
gives you and just do a plain-vanilla compile — no fancy stuff, at
least not yet. Locate and select your source file in the dialog box
that appears; just double-click it to make it appear in the list of
movies to be compiled. Then click the CREATE... button.
Name the file — perhaps something like
"Hello" — and press ENTER. Director will begin the process. It
shouldn't take more than a few moments to complete.
When the compile is finished you
will have a program which should work just fine on its own. (Note,
however, that if you compile under Mac your program will not work on a
PC and vice versa; to make an executable file that will work on a
different platform you must compile it using the version of Director
that is native to that platform.) Find the projector you just made and
double-click it; see if it does everything it should do.
Now go ahead and copy your program to diskette and try running it on another machine.
Guess what: You've just knocked down about eighty percent of what you
need to know to be writing programs in Director. From here on out it's
largely a matter of degree of application of what you already know, not
learning entirely new stuff.
Pretty cool, huh?
|