A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Help needed with combobox component

  1. #1
    Legend of the Balance
    Join Date
    Dec 2002
    Location
    Azeroth
    Posts
    54

    Help needed with combobox component

    ying to change the highlight text color of the combobox component, but can't seem to find it.. I changed teh text color using "color" and the highlight background color using "themeColor" but what's the attribute to get when you select on of the selections with your mouse, the text color changes to some other color and when you mouse down the text it changes to another color. I need those two attributes.. any help is appreciated.

    myComboBox.setStyle("fontSize", "12");
    myComboBox.setStyle("fontFamily", "Arial");
    myComboBox.setStyle("themeColor", "0xC1CFD8");
    myComboBox.setStyle("disabledColor", "0x009900");
    myComboBox.setStyle("borderColor", "0x999900");
    myComboBox.setStyle("color", "0xFF0000");
    "Hello, my name is Inigo Montoya... you kill my father, prepare to die."

  2. #2
    Senior Member
    Join Date
    Oct 2000
    Location
    Hannover, Germany
    Posts
    164
    IBarFormat.textSelected = 0xFFFFFF;

    that's one of them at least.

    cheers,
    miakazi

  3. #3
    Legend of the Balance
    Join Date
    Dec 2002
    Location
    Azeroth
    Posts
    54
    Hi Miakazi,

    Thanks for the responce... yeah, tried it both ways.. but it didn't change that default dull green color when you select one of the drop down options. This is how I formatted it...

    Country.textSelected = 0xFFFFFF;
    Country.setStyle("textSelected", "0x990000");

    Thanks for trying though... anyone else know?
    "Hello, my name is Inigo Montoya... you kill my father, prepare to die."

  4. #4
    Senior Member
    Join Date
    Oct 2000
    Location
    Hannover, Germany
    Posts
    164
    ...not to ask a stupid question, but at the end of the styles list you did put a Country.addListener(myComboBox); so it knows what component to attach itself to? Otherwise, I'll keep looking too!

    cheers!
    miakazi

  5. #5
    Senior Member
    Join Date
    Oct 2000
    Location
    Hannover, Germany
    Posts
    164
    ...oh, and at the beginning the definition of a new format: here's the one I currently use:

    var IBarFormat = new FStyleFormat();
    IBarFormat.fontFamily = frutiger,futura;
    IBarFormat.textColor = 0x003399;
    IBarFormat.textSize = 10;
    IBarFormat.textLeading = 4;
    IBarFormat.selection = 0x3591C5;
    IBarFormat.scrollTrack = 0x3591C5;
    IBarFormat.textSelected = 0xFFFFFF;
    IBarFormat.highlight3D = 0xA7D0ED;
    IBarFormat.shadow = 0x3591C5;
    IBarFormat.darkshadow =0x006699;
    IBarFormat.highlight = 0xFFFFFF;
    IBarFormat.arrow = 0xFFFFFF;
    IBarFormat.foregroundDisabled = 0xFFFFFF;
    IBarFormat.face = 0x3591C5;
    IBarFormat.addListener(interactBar_sb);
    IBarFormat.addListener(interCombo_cb);

    hope this helps!
    miakazi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center