Changing ListBox text styles

Hi… very grateful for the listbox tutorial! It’s been very helpful.

I have a question: is it possible to change the size, colour, font etc of the Label values in a listbox? My listbox looks yukky, and I want to change it.

Thanks in advance for your help.

you can change the look and feel of your listbox. Just go inside the component itself and change the skins…

Details are in the help section. It’s not difficult. If you get totally stuck, let us know.

Thanks - that wasn’t quite what I was asking (I was a bit unclear), but I solved the problem anyway: although I knew how to change the skins, I wasn’t sure how to change the text styles (they don’t appear under skins, as far as I can see). But what I worked out is that you can use setStyleProperty to influence text (just add it to your actionscript):

listBox.setStyleProperty(“textFont”, “Arial”);
listBox.setStyleProperty(“textColor”, “0xFFFFFF”);
listBox.setStyleProperty(“textSize”, “11”);

Hope this is useful for some other people!

where about to you enter these actionscript lines?