ABSTRACT

This chapter deals with the Menu component; the MenuBar component, which is used in combination with the Menu component; and the Tree component. The Tree component is only related to the Menu components; however, it can be used to create menus with subfolders and individual links. The Tree component will use an XML file, which can be assigned to a data provider, and a treelike menu is created. This component can form several levels of submenus, and the component manipulation requires only a minimum of ActionScript. The Menu component uses the MenuDataProvider class, which has a few methods to add and remove or identify menu items. Icons can be added and folders can be set to open at runtime or stay closed until they are opened. The limitation of this component is that it can be used only to create vertical menus.