nightwares mini logoA brief introduction to Director

13. Close, but it Ain't Chili Yet...

Keeping Director on the right frame.

Director 8.5 Shockwave Studio: A Beginner's Guide

Online reader support forum for the book

If you were to compile your program into a projector right now, when you ran it it would only display for a fraction of a second before quitting on its own.

This is because the Score has no way of knowing that it's supposed to pause and wait for user input of some kind, so what happens is the projector launches, blows right through the one frame of your Score and, encountering no other frames with things in them, quits.


That's no fun.

You need, then, a way to tell Director to wait until the user does something.

Just above the cell in the Score that contains the text field's item, there should be a channel open with an icon that looks like a little window with tiny text in it. This is a Score script channel, and you can use it to tell Director to do all sorts of things at a given frame. In this case, we want the program to pause.


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