Here we illustrate the basic mechanism of scripting in Director by developing and extending a very basic example: Making a button beep and attaching a message to a button
Making the a button beep
Macromedia Director Director Tool Palette
Macromedia Director Script Cast Member Window
on mouseUp beep end
To pop up a message box on button press (and still beep)
on mouseUp beep alert "Button Pressed" end