PDA

View Full Version : combo box - change bg color of select labels


robgobbler
10-15-2004, 08:11 PM
I'm working on a flash project for a client who wants me to use the combobox in a way i'm not sure it can be used.

I'll simplify the request.

They want a dropbox that shows all of their products.. when you pull down and select a product, you see content specific to that product. however they do not want to display content for all of their higher end products. They want all of their products in the dropdown (combobox) regardless of this fact. The client has explicitly (you know how these clients can be) asked that i "grey out" the unselectable items from the list but still show them.. selecting the 'greyed' out items should return the drop box to it's original state "Select a Product"

I've played with how to alternate colors in the combobox list but i'd like to take that a step further and be able to colorize (in this case with grey) items in the bottom of the list.

any help would be appreciated.. thanks!

-rob

robgobbler
10-17-2004, 04:17 AM
well from my digging I couldn't find anything to indicate that flash mx 2004 gives you the ability to apply different styles to comboBox labels..

to get around this, i simply made a movie clip containing a row of buttons, some buttons activated, some "greyed-out". the list was too big to fit on my 800x600 movie size so i set the mc to export for actionscript, deleted it off my stage, replaced it with a scroll pane, set the size to fit and filled in the contentPath to point to the mc name of the clip containing the rows and rows of buttons for my from-scratch custom drop down list.

farafiro
10-17-2004, 01:28 PM
http://www.actionscript.org/forums/showthread.php3?t=56643

robgobbler
10-18-2004, 10:04 PM
no you didn't read the question very carefully. thanks though.

farafiro
10-20-2004, 08:50 AM
ok, sorry
I think this can be done with a combination of the itemRollOver listener with the selectedItem