Lingo Dictionary > G-K > installMenu |  |

installMenu

Syntax

    installMenu whichCastMember

Description

Command; installs the menu defined in the field cast member specified by `whichCastMember`. These custom menus appear only while the movie is playing. To remove the custom menus, use the `installMenu` command with no argument or with 0 as the argument. This command doesn't work with hierarchical menus.

For an explanation of how menu items are defined in a field cast member, see the `menu` keyword.

Avoid changing menus many times because doing so affects system resources.

In Windows, if the menu is longer than the screen, only part of the menu appears; on the Macintosh, menus longer than the screen can scroll.

Note: Menus are not available in Shockwave.

Example

This statement installs the menu defined in field cast member 37:

    installMenu 37

Example

This statement installs the menu defined in the field cast member named Menubar:

    installMenu member "Menubar"

Example

This statement disables menus that were installed by the `installMenu` command:

    installMenu 0

See also

`menu`