nightwares mini logoA brief introduction to Director

26. Your Second Error

Another quick test run.

Director 8.5 Shockwave Studio: A Beginner's Guide

Online reader support forum for the book

Go ahead and close your Movie Script window. Director will test your syntax. If there's a problem, you'll be notified; make sure that what you've entered looks like the foregoing. Now save your file and run it by first rewinding the playback head and then clicking the play button. You should see the standard Director menu replaced by whichever menu is appropriate for your development system -- the menus you just defined.


If you select the About This Program... menu item now, though, Director will return an error. Click CANCEL. What's happened, of course, is that you issued the AboutBox() handler call without actually defining precisely what AboutBox() is or does (that's what that "| AboutBox()" stuff is doing after the About This Program... menu item, after all).

To do this now, let's go back to your trusty Movie Script. Below your LoadMenus() handler definition, add the following text:

  on AboutBox

    ALERT "This 'Hello, World' program was written by [your name] using Macromedia Director."

  END AboutBox


Note that there are only single quotation marks used around the title "Hello, World" in the ALERT above. You can include double quotation marks using a bit of fancy text-handling. For now, remember that anything in an ALERT phrase which is to be seen onscreen is delimited at the beginning and end only by double quotes; everything within those quotes must be single-quoted.


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