E-merald web-engineering Flash components
E-merald web-engineering Contact Site map
 
Home Components Support Purchase
Components

ActionScript Methods

InheritanceMovieClip > UIObject class > GlobalMenuPro class

Methods inherited from the UIObject class

The following table lists the methods the GlobalMenuPro class inherits from the UIObject class.

Method Description
UIObject.getStyle() Gets the style property from the style declaration or object.
UIObject.move() Moves the object to the requested position.

Methods unique to the GlobalMenuPro class

The following table lists methods of the GlobalMenuPro class.

Method Description
GlobalMenuPro.getItemAt() Gets a reference to a menu item at a specified location.

GlobalMenuPro.getItemAt()

Usage

my_menu.getItemAt(index)

Parameters

index   An integer indicating the index of the node in the menu. This is a zero-based index, so 0 retrieves the first item, 1 retrieves the second item, and so on.

Returns

A reference to the specified node.

Description

Method; returns a reference to the specified child node of the menu.

Example

The following example demonstrates how to retrieve the values of attributes available for the item node with index 5:

my_menu.getItemAt(5).label;
my_menu.getItemAt(5).action;
my_menu.getItemAt(5).url;
my_menu.getItemAt(5).target;
my_menu.getItemAt(5).enabled;
my_menu.getItemAt(5).fontColor;

© E-MERALD. All rights reserved.
© Designed by Fox.net.ua.