nightwares mini logoA brief introduction to Director

18. When you Come to the Fork in the Road...

Two different menus for two different operating systems.

Director 8.5 Shockwave Studio: A Beginner's Guide

Online reader support forum for the book

The minimal menu bar, for a Macintosh machine, includes the Apple menu and the FILE menu. Under Windows, a minimal menu bar has just the FILE menu.

The minimal number of menu items is generally two: Quit/Exit and About This Program... (hey, it's fair that you credit yourself). More common elements include the EDIT menu and, of course, the Help... menu item for many Windows programs.

Already, without entering any code at all, we've defined two different kinds of menu, which are platform-dependent -- that is, depending on the machine this file is running on, you will have to have one menu type or the other onscreen.

This is just the beginning, and now perhaps you can see why I recommend keeping menu usage pretty low-key.

In keeping with the principle of maximum return for minimum effort, the best way to design your menus would be to use two separate sets of commands, each being installed at application launch depending on which system is in use. That way you don't have to really change your source file at all in order to make it run under either Mac or Windows.


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