• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Do It

Open a new movie, drag a MenuBar component to the stage, and call it mainMenu. It starts blank but is pretty easy to add to.

						var menu = mainMenu.addMenu("File");
// look familiar? We're using the same methods
// as Menu.
menu.addMenuItem({label:"New",
  instanceName:"newInstance"});
menu.addMenuItem({label:"Open",
  instanceName:"openInstance"});
menu.addMenuItem({label:"Close",
  instanceName:"closeInstance"});

// load XML menu and attach it to this menu item
var menuXML:XML = new XML();
menuXML.ignoreWhite = true;
menuXML.load("big_menu.xml");
menuXML.onLoad = function ()
{
    var menuMore = mainMenu.addMenu("Actions");
    menuMore.dataProvider = menuXML.firstChild;
}


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint