-
[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...
-
Senior Member
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. -
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|