Lingo Dictionary > L-N > name (cast member property) |  |

name (cast member property)

Syntax

    member(whichCastMember).name
    member(whichCastMember, whichCastLib).name
    the name of member whichCastMember

Description

Cast member property; determines the name of the specified cast member. The argument `whichCastMember` is`` a string when is`` used as the cast member name or an integer when used as the cast member number.

The name is a descriptive string assigned by the developer. Setting this property is equivalent to entering a name in the Cast Member Properties dialog box.

This property can be tested and set.

Example

This statement changes the name of the cast member named On to Off:

    member("On").name = "Off"

Example

This statement sets the name of cast member 15 to Background Sound:

    member(15).name = "Background Sound"

Example

This statement sets the variable `itsName` to the name of the cast member that follows the cast member whose number is equal to the variable `i`:

    itsName = member(i + 1).name

See also

`number (cast member property)`