A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [CS4][AS3] ComboBox RollOver state

  1. #1
    Code Monkey
    Join Date
    Jul 2001
    Location
    Chicago
    Posts
    89

    [CS4][AS3] ComboBox RollOver state

    Hey all,

    I've been researching all day and it seems like this is impossible to do. I see you can setStyle on ComboBoxes/Lists & other components but... How do you control the style for a Roll Over state? I'm not looking to change colors but instead, turn underlining on and off during MOUSE_OVER and MOUSE_OUT, respectively. Is this doable? Can anyone point me in the right direction?!?

    Thanks in advance!

    Kirk =]
    100 posts until an avatar...

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    When you rollover you create a new textformat:
    textFormat = new TextFormat();
    textFormat.underline = true;
    cb.textField.setStyle ('textFormat',textFormat);
    When you rollout you change it again the same way.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Code Monkey
    Join Date
    Jul 2001
    Location
    Chicago
    Posts
    89
    Hi C!
    Thanks for the response! I re-read my question and I think I missed a vital part (sorry). I was looking to change the rollover states of each of the items in my dropdown. The dropdown is being filled dynamically via XML. Can you reference each item in the dropdown list and use "addEventListener" to each line? That way, when you rollover say "item B", it IS underlined while "item A" && "item C" are not? Sorry for any confusion.

    Thanks, K =]
    100 posts until an avatar...

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