listing fonts

i have a dir with fonts that i need too list with flash...
is it posible, i mean, i have 10 fonts, and i want to write each font name with it's font, and make s list of them...
svsvsvAsked:
Who is Participating?
 
ArulPrasad1Commented:
Hi,

I had created something a while back. Please check if this can help you:
http://arulprasad.blogspot.com/2006/07/showing-list-of-fonts-in-flash-v2.html


Regards,
Arul Prasad
0
 
Aneesh ChopraCommented:
Flash can't read content of a directory directly,
alternatively you can creat an xml or text fle, which has fonts name and flash  load it to read the font info..

-Aneesh
0
 
svsvsvAuthor Commented:
ok, but how do i create a list of them in flash?
let's say i make an xml/php file that will give a list of them, how can i display them in a drop down/select box?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Aneesh ChopraCommented:
Here I have done a sample for you,

download link:
http://www.4shared.com/file/5214143/7abdf1e5/fontlist_using_xml.html

-Aneesh
0
 
svsvsvAuthor Commented:
hmm, it just lists the text from xml
i need it to write the name of a font with the font itself...
and i need it to list the ttf files...
0
 
Aneesh ChopraCommented:
sorry, not possible to display differnt font-faces as a list in combo box..
you can have only one font for displaying list in comboBox(anyone but only one)
0
 
svsvsvAuthor Commented:
hmm,
how can i make something scrollable, maybe some text box with scroll bar?
i just need to display some fonts with an option to select one....
0
 
Aneesh ChopraCommented:
you can use listComponent instead of comboBox, just change the combobox instance with list component instance in my sample FLA

list component will show the items in list and also provide functionality to select one or multiple option..
0
 
svsvsvAuthor Commented:
ok, but how do i write the font names with each font?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.