nightwares mini logoA brief introduction to Director

11. Working Draft

A quick first-run test.

Director 8.5 Shockwave Studio: A Beginner's Guide

Online reader support forum for the book

Your entire script should now look something like this (note that there is a lot of space there; this is called white space and is included by good programmers to make their code much easier to read):

  on StartMovie

    CheckColor()

  END StartMovie


  on CheckColor

    if the colorDepth <> 8 then

    
ALERT "Caution: This computer is set to something other than 256-color (8-bit) color mode." & RETURN & RETURN & "Some colors in this program may not be displayed correctly."

    end if

  END CheckColor


Close your Movie Script window and click the play button. If all goes well, nothing should happen at all (of course, if your monitor is not displaying 256 colors, you will get an alert message telling you so).

Why does nothing happen? Because you've not defined any onscreen events. You need to tell Director to display the phrase "Hello, World" before it can do it!


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