Damn gmail, wasn't ready to send. Anyway, I'm trying to style this menu, and
calling setStyleName or setStyle (as below) has no effect. Even a
Menu {
open-duration:3500;
}
in the css file affects other menus but not this one.
Any ideas?
On Wed, Jul 29, 2009 at 10:17 AM, Richard Rodseth <[email protected]>wrote:
> I have a PopUpButton subclass which pops up a menu built as follows:
>
> private function buildMenu():void {
> _menu = new Menu();
> _menu.dataProvider = _availableItems;
> _menu.labelFunction = this.menuItemLabelFunction;
>
>
> _menu.setStyle("openDuration", 3500);
>
> _menu.addEventListener("itemClick", itemClickHandler);
> this.popUp = _menu;
> }
>
>