Director Help

Naming cast members

To avoid problems in Lingo or JavaScript syntax when referring to cast members, name them and then refer to them by name. Naming cast members doesn’t affect Director performance. The name stays the same even if the cast member number changes.

Avoid duplicating cast member names. If more than one cast member has the same name, Lingo or JavaScript syntax uses the cast member with the lowest number in the cast.

  1. Select the cast member in either the List or the Thumbnail view of the Cast window.
  2. Do one of the following:
    • Enter a name in the Cast Member Name text box at the top of the Cast window or in any of the editing windows.
    • Enter a name in the Name text box on the Cast or Member tab in the Property inspector.

To name a cast member by using Lingo or JavaScript syntax, set the name Cast Member property. For more information about this property, see the Scripting Reference topics in the Director Help Panel.