Now that you've got a StartMovie() handler that actually does something
— it calls another handler, CheckColor() — you can try to run your
program, right?
Well, try it. Close the Script window by either
clicking the close box or by pressing ENTER (not RETURN) and then click
the play button.
What happened? Director returned an error!
This is because the handler CheckColor() does not in fact exist yet. You have to make it.
Reopen the Movie Script window by either double-clicking its icon in the Cast window or by pressing the hot-key sequence.
Underneath the StartMovie() handler, press RETURN a few times and type in the following:
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
|