Skip navigation
Currently Being Moderated

Change Arrow Color of Combos and MenuBars

Mar 12, 2009 7:31 AM

I have several combo boxes and a menubar with a dropdown at the top of the page. The client wants the menu and the buttons to be black and the "down" arrows on the combos to be white. Also, the drop down menubar at the top has multiple choices within that have black arrows that also need to be white.

I can't seem to find a property that would manipulate the color of these arrows. I have also used the Flex Style Explorer and nothing there seems to indicate how to do it either. Is this possible?
  • Currently Being Moderated
    Jun 1, 2009 9:50 AM   in reply to phillipus_rex

    From what I can gather looking at the source for the Flex components, this is not a style that is settable using a normal style property. However, there is a way to get at the button.


    If you look at the code for a combo box, you'll see that it's based on the ComboBase class. Inside this class is where the button for the drop down really lives, an mx_internal variable called: downArrowButton:Button. To access it, you can create a class that subclasses the Combo Box class, (you might have to put a "using namespace mx_internal;" in the import section of your class), then access the button directly as:




    From there, you should be able to do whatever you want to with the button's style properties. I hope that helps!



    Mark as:
  • Currently Being Moderated
    Jul 11, 2013 11:21 AM   in reply to phillipus_rex

    Set a Style like:


    branch-icon: Embed(source="/assets/mybranhicon.png");


    For menu works fine.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points