Solved

listing fonts

Posted on 2006-10-31
9
209 Views
Last Modified: 2013-12-03
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...
0
Comment
Question by:svsvsv
  • 4
  • 4
9 Comments
 
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 17841476
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
 

Author Comment

by:svsvsv
ID: 17841494
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
 
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 17841534
Here I have done a sample for you,

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

-Aneesh
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

Author Comment

by:svsvsv
ID: 17841565
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
 
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 17841584
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
 

Author Comment

by:svsvsv
ID: 17841612
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
 
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 17841629
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
 

Author Comment

by:svsvsv
ID: 17841665
ok, but how do i write the font names with each font?
0
 
LVL 6

Accepted Solution

by:
ArulPrasad1 earned 500 total points
ID: 17843299
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

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Matching Avenir Fonts In Adobe Arobat DC 7 886
How do I know if Java and Flash Player are installed on my computer 4 76
font missing in acrobat 3 75
Adobe Indesign CS6 4 116
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

775 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question