Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : Re: MenuBar Component Question


frankgrimes
4/14/2004 9:02:56 PM
To use the top-level menu option only (no dropdown), try this:

menubar.mbItem200.onRelease = function(){
//some fabulous code
}

The first item added to the menubar is mbItem200, the second is mbItem201, and
so on.

Have fun!

:grimey
KevinMatte
7/12/2004 6:10:32 PM
I wasn't happy using 'mbItem*', although it works. I checked the code and found
I could do this:

myMenu = menuBar.addMenu("Click Me");
myMenu.__activator.onRelease = function() {
trace("I've been clicked");
};
It ends up being the same thing, though. Just a partially bit less reliant on
the implementation.


pao1011
7/14/2004 1:45:36 AM
AddThis Social Bookmark Button