all groups > macromedia flash sitedesign > august 2006 >
You're in the

macromedia flash sitedesign

group:

COMBOBOX PROBLEM



COMBOBOX PROBLEM MEDIAJP
8/18/2006 12:00:00 AM
macromedia flash sitedesign: Hi. I've a problem with comboBox in Flash 8. I can modify the text font, color,
and smoothing in the dropdownlist, but, when I select an Item, the dropdownlist
closes and appears at comboBox the selecteditem but with a standard combobox
font type and standard combobox font color and with no smoothing. I tried a lot
of thins to correct this, but without luck. How I can change the font
properties when the dropdownlist is closed?. Can somebody hels me?.

I give you the jpg to view the problem:

http://www.digitecmedia.com/combobox/combobox_1.jpg
http://www.digitecmedia.com/combobox/combobox_2.jpg

Thanks a lot.
Re: COMBOBOX PROBLEM Moca
8/19/2006 12:00:00 AM
Since the drop list is a list component, you need to use the list
properties. I was able to maintain the font used after selection just
like this:

my_cb.addItem({data:1, label:"One"});
my_cb.addItem({data:2, label:"Two"});
my_cb.setStyle("fontFamily", "Divine");

you can view all the available properties by opening help:
List component <00003694.html>> Customizing the List component
<00003699.html> > Using styles with the List component


[quoted text, click to view]
AddThis Social Bookmark Button