Prev | Current Page 973 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

addDivider( id );
Finally, you move on to submenus. Essentially, a submenu is an item just like any other entry, with the
exception that submenus are menus in there own right. There ??™ s no reason why you can ??™ t show a menu
on its own one minute, and then as a submenu for a parent menu the next.
To add a submenu, you use the addSubmenu method:
menu.addSubmenu( menu2, ???my submenu???, id );
Here, the first parameter is an instance of the Menus class, the second is the caption shown in the parent
menu, which represents the submenu, and the third parameter is the id.
Using Dialogs
SysTools provides a number of dialogs for use in your developments that are simple to use, yet
extremely useful. Merely being able to alert a user to a situation in one line of code, without resorting to
designing a message box and api in Flash, will save hours of coding time. What ??™ s more, you ??™ ll not only
be able to provide information, but collect information, too.
Part III: Extending the Possibilities
530
The Message Box
The message box is one of the most frequently used of all dialog boxes.


Pages:
961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985