PDA

View Full Version : textFormat for ComboBox values


fou99004
07-21-2006, 11:14 PM
I have a combobox full of font names. I was thinking that it would be pretty cool to have the actual font format show in the label as well. I haven't found anything on this though. Is there a way to set this capability? Thanks.

arulprasad
07-24-2006, 12:06 PM
Hi,

I did this. Checkout my blog post on this here:
http://arulprasad.blogspot.com/2006/07/showing-list-of-fonts-in-flash-v2.html

Hope you dont mind me using ur query in the post ;)

fou99004
07-24-2006, 04:18 PM
Very nice work. Thanks a ton. There is so much that can be done with the components and I am just barely learning them. This is one of the coolest things that I have seen in a while. Thanks for your help.

fou99004
07-24-2006, 05:04 PM
I have a question and a suggestion.

The question is what actually sets the fonts in the scroll area the first time. I am having a problem getting that part working. I am thinking it is myCB.open(); because that is the only thing I don't have in mine yet. No just kidding that was dumb. I still don't know why it isn't setting the fonts in the scroll region, the onchange part is working fine though.

The suggestion is this:
just one small thing that I noticed that you might want to add. You set your style with your change function but you don't actually set it in your init function. Nothing that big but I just thought you would want to know.

arulprasad
07-24-2006, 05:45 PM
Thanks for tat suggestion Jason,

I didnt get into so deeply :o

Will update it for sure.

Regards,
Arul Prasad.