Using Director > Parent Scripts > Writing a parent script |  |

Writing a parent script

A parent script contains the Lingo needed to create child objects and define their possible actions and properties. First you need to decide how you want the child objects to behave. Then you can write a parent script that does the following:

| Optionally declares any appropriate property variables; these variables represent properties for which each child object can contain a value independent of other child objects. See Parent script and child object basics.
| Sets up the initial values of the child objects' properties and variables in the `on new` handler.
| Contains additional handlers that control the child objects' actions.