Component parameters
You can set the following authoring parameters for each Global Menu Pro component instance in the Component inspector:
1. Menu Bar parameters
barBgColor1: The starting (top) color of the gradient fill of the menu bar background. The default value is "#FFFFFF".
barBgColor2: The ending (bottom) color of the gradient fill of the menu bar background. The default value is "#FFFFFF".
barBgAlpha1: The starting (top) alpha transparency of the gradient fill of the menu bar background. Possible values: from 0 to 100. The default value is 0.
barBgAlpha2: The ending (bottom) alpha transparency of the gradient fill of the menu bar background. Possible values: from 0 to 100. The default value is 0.

Note: If you need to use a solid fill (with no gradient), the value of barBgColor2 must be equal to the value of barBgColor1 and the value of barBgAlpha2 must be equal to the value of barBgAlpha1.
barRounded: Specifies which corners of the menu bar to be drawn rounded. This parameter can be one of six predefined values: "all", "left", "right", "top", "bottom", "none". The default value is "all".
The size of the menu bar can be set while authoring or through the XML file. While authoring, select the Global Menu Pro component on the Stage and use the Free Transform tool or any of the Modify > Transform commands.
2. Geometrical and Functional parameters
rectangleCornerRadius: Specifies the corner radius for all background fills (rectangles), in pixels. The default value is 5.
leftMargin: The left margin of the menu, relative to the left edge of the menu bar, in pixels. The default value is 0.
itemHeightL1: The height of each top-level item, in pixels. The default value is 30.
itemHeightL2: The height of each pop-up level item, in pixels. The default value is 25.
itemWidthL1: The width of each top-level item, in pixels. The default value is 100.
itemWidthL2: The width of each second-level item, in pixels. The default value is 150.
itemWidthL3: The width of each third-level item, in pixels. The default value is 150.
itemWidthL4: The width of each fourth-level item, in pixels. The default value is 150.
itemWidthL5: The width of each fifth-level item, in pixels. The default value is 150.
topLevelIcons: Determines whether to draw the icons for the top-level menu items. The top-level icons are built-in and predefined. The default value is "true".
popupLevelIcons: Determines whether to draw the icons for the menu items of pop-up levels. The pop-up level icons are built-in and predefined. The default value is "true".

Note: In this context, "pop-up level" means "second, third, fourth or fifth level" of menu.
topLevelIconSize: The size of the icon for each top-level menu item, in pixels. The value of this parameter is controlled programmatically and depends on the specified font size and font family. Use topLevelIconSize optionally if you want to set your custom value for the size of a top-level icon. Possible values: 5, 7, 9, 12, 14. The default value is undefined.
popupLevelIconSize: The size of the icon for each pop-up level item, in pixels. The value of this parameter is controlled programmatically and depends on the specified font size and font family. Use popupLevelIconSize optionally if you want to set your custom value for the size of a pop-up level icon. Possible values: 5, 7, 9, 12, 14. The default value is undefined.
tweenDurationRollover: A number indicating the duration of the tweened animation in seconds. The tweened animation is applied to each top-level item and its nested submenus when fading in and out. This parameter accepts values from 0 to 0.7. The default value is 0.2.
tweenDurationSliding: A number indicating the duration of the tweened animation in seconds. The tweened animation is applied to submenu blocks when sliding to the right or to the left. This parameter accepts values from 0 to 0.5. The default value is 0.2.
fadeOutDelay: Amount of time (in seconds) to wait before fading out the rolled-over top-level item and its nested submenus after the mouse pointer is no longer positioned over the menu. This parameter accepts values from 0 to 3. The default value is 0.4.
shiftLeftBasic: Specifies the distance (in pixels) between the left edge of the top-level item and the left edge of its nested second-level submenu in the state when the third-level submenu is closed. The default value is 10.
shiftLeftSlide: Specifies the distance (in pixels) between the left edge of the top-level item and the left edge of its nested second-level submenu in the state when the third-level submenu is opened. The default value is 40.

glowFilter: Determines whether to apply a glow effect to pop-up submenu blocks. The default value is "true".
itemRollAnimation: Lets you select which type of animation effect to apply to a pop-up level item when it is rolled over or rolled out. This parameter can be one of three predefined values: 1, 2, 3. The default value is 1.
3. Text Style parameters
fontFamily: The font name for text. The default value is "_sans".
embedFonts: A Boolean value that indicates whether the font specified in fontFamily is an embedded font. This parameter must be set to "true" if fontFamily refers to an embedded font. Otherwise, the embedded font is not used. If this parameter is set to true and fontFamily does not refer to an embedded font, no text is displayed. The default value is "false".
fontSizeL1: The point size for the font of a top-level item text. Possible values: from 8 to 96. The default value is 12.
fontSizeL2: The point size for the font of a pop-up level item text. Possible values: from 8 to 96. The default value is 11.
fontColorL1: The text color of a top-level item. The default value is "#6683AF".
fontColorL2: The text color of a pop-up level item. The default value is "#FFFFFF".
fontColorRolloverL1: The color of text when the pointer rolls over a top-level item. The default value is "#AFB2B6".
fontColorRolloverL2: The color of text when the pointer rolls over a pop-up level item. The default value is "#383838".
fontColorSelectedL2: The color of text in the selected pop-up level item. The default value is "#DADEE9".
fontColorDisabledL1: The text color of a top-level item when it is disabled. The default value is "#979797".
fontColorDisabledL2: The text color of a pop-up level item when it is disabled. The default value is "#B1B4B8".
fontWeightL1: The font weight for the text of a top-level item. Possible values: "normal", "bold". The default value is "normal".
fontWeightL2: The font weight for the text of a pop-up level item. Possible values: "normal", "bold". The default value is "normal".
fontStyleL1: The font style for the text of a top-level item. Possible values: "normal", "italic". The default value is "normal".
fontStyleL2: The font style for the text of a pop-up level item. Possible values: "normal", "italic". The default value is "normal".
textDecorationL1: The text decoration of a top-level item. Possible values: "none", "underline". The default value is "none".
textDecorationRolloverL1: The text decoration when the pointer rolls over a top-level item. Possible values: "none", "underline". The default value is "none".
textAlignL1: The text alignment of a top-level item. Possible values: "left", "center", "right". The default value is "left".
textPaddingTopL1: The spacing between the top edge of a top-level item and the text of its label, in pixels. Use textPaddingTopL1 optionally if you want to set your custom value for this parameter. The default value is undefined.
textPaddingTopL2: The spacing between the top edge of a pop-up level item and the text of its label, in pixels. Use textPaddingTopL2 optionally if you want to set your custom value for this parameter. The default value is undefined.
textPaddingLeftL1: Specifies the spacing (in pixels) between: (a) the left edge of a top-level item and the text of its label (or the top-level icon, if topLevelIcons is set to "true"), (b) the right edge of a top-level item and the text of its label. Use textPaddingLeftL1 optionally if you want to set your custom value for this parameter. The default value is undefined.
textPaddingLeftL2: The spacing between the left edge of a pop-up level item and the text of its label (or the pop-up level icon, if popupLevelIcons is set to "true"), in pixels. Use textPaddingLeftL2 optionally if you want to set your custom value for this parameter. The default value is undefined.
4. Background Style parameters
bgL1Color1: The starting (top) color of the gradient fill of a top-level item's background. The default value is "#FFFFFF".
bgL1Color2: The ending (bottom) color of the gradient fill of a top-level item's background. The default value is "#FFFFFF".
bgL1Alpha1: The starting (top) alpha transparency of the gradient fill of a top-level item's background. Possible values: from 0 to 100. The default value is 0.
bgL1Alpha2: The ending (bottom) alpha transparency of the gradient fill of a top-level item's background. Possible values: from 0 to 100. The default value is 0.
Note: If you need to use a solid fill (with no gradient), the value of bgL1Color2 must be equal to the value of bgL1Color1 and the value of bgL1Alpha2 must be equal to the value of bgL1Alpha1.
bgL1Rounded: Specifies which corners of a top-level item's background to be drawn rounded. This parameter can be one of six predefined values: "all", "left", "right", "top", "bottom", "none". The default value is "top".
bgL1RolloverColor: The background color of a rolled-over top-level item. The default value is "#242424".
bgL1RolloverAlpha: The background transparency of a rolled-over top-level item. Possible values: from 0 to 100. The default value is 100.
bgL2Color1: The starting (top) color of the gradient fill of a pop-up level item's background. The default value is "#242424".
bgL2Color2: The ending (bottom) color of the gradient fill of a pop-up level item's background. The default value is "#444444".
bgL2Alpha1: The starting (top) alpha transparency of the gradient fill of a pop-up level item's background. Possible values: from 0 to 100. The default value is 100.
bgL2Alpha2: The ending (bottom) alpha transparency of the gradient fill of a pop-up level item's background. Possible values: from 0 to 100. The default value is 100.
Note: If you need to use a solid fill (with no gradient), the value of bgL2Color2 must be equal to the value of bgL2Color1 and the value of bgL2Alpha2 must be equal to the value of bgL2Alpha1.
bgL2Rounded: Specifies which corners of a pop-up level item's background to be drawn rounded. This parameter can be one of four predefined values: "all", "top", "bottom", "none". The default value is "all".
bgL2RolloverColor: The background color of a rolled-over pop-up level item. The default value is "#C0CCE3".
bgL2RolloverAlpha: The background transparency of a rolled-over pop-up level item. Possible values: from 0 to 100. The default value is 100.
bgL2SelectedColor: The background color of a selected pop-up level item. The default value is "#747A86".
bgL2SelectedAlpha: The background transparency of a selected pop-up level item. Possible values: from 0 to 100. The default value is 100.
5. XML File parameters
xmlFileURL: This parameter is the path to the configuration XML file. The default value is undefined.
Note: Another way to set the path to XML file is to pass the variable xmlURL to a SWF (containing Global Menu Pro component instance) through HTML tags (see example for more information). |