nightwares mini logoA brief introduction to Director

21. Launch Windows and Whatnot

Defining the Windows menu.

Director 8.5 Shockwave Studio: A Beginner's Guide

Online reader support forum for the book

All right, that's the raw Mac menu. Since the Windows version of the menu will be virtually the same (hey, we were smart and planned ahead), we can save ourselves a bit of typing by doing a shortcut procedure: Select the castmember in the Cast window that represents the menu you've just made and duplicate it.

To do this, just click on the box containing the menu (probably castmember number four or so) and press COMMAND+D (Mac) or CONTROL+D (Win) to duplicate the castmember. You should get an identical twin of your menu in the Cast window. Now use the mouse to drag the duplicate onscreen, below the original. This will be your second menu — the one to be used on the Windows platform. Naturally, it's going to look a little different. For the Mac menu, remember, you entered this:

  menu: @
  About This Program.../A | AboutBox()
  menu: File
  Quit/Q | QUIT

For Windows things are a little different, so change the second menu field to look like this:

  menu: File
  About This Program.../A | AboutBox()
  Exit/X | QUIT

Note that the "@" menu is no longer there; that's because on Windows, of course, there's no Apple menu, for a number of pretty self-apparent reasons. The About This Program... menu item has been moved to the FILE menu (ordinarily it would be under the HELP menu, probably, but there is no HELP menu required for this program).

In addition the other item under the FILE menu is the word Exit, not Quit. Note too that the command key has changed from Q to X — this is consistent with Windows interface design. That is, to exit a Windows program, one generally can type Control-X, just as one can type Command-Q on Mac. (Note however that the actual command associated with that item, QUIT, has not changed; this is internal to Director. Don't substitute the word EXIT for QUIT within your scripts.)


1. Introduction

2. Definition of Objectives

3. Specific Objectives

4. Stage Size

5. Stage Location

6. Setting the Stage's Color

7. Beginning to Enter Script

8. A bit More About the StartMovie() Handler

9. Entering Another Handler

10. A Break-down of the CheckColor() Handler

11. A Quick Test

12. Adding Text to the Stage

13. Preparing to Enter a Frame Script

14. Entering the Frame Script

15. Adding a Quit Button

16. The Progress so Far

17. Preparing to Add a Menu

18. Discussion of Menu Requirements

19. Preparing the Menu Storage Member

20. Entering Menu Functions for Macintosh

21. Entering Menu Functions for Windows

22. Efficientlly Handling Multiple Menus

23. Preparing to Insert the Menus Onscreen

24. Adding the Menu Installation Handler

25. Discussion of the Menu Installation Handler

26. Adding Code for an About Box

27. Review of the Scripts

28. Creating a Projector and Running it