Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

listing fonts

Posted on 2006-10-31
9
Medium Priority
?
228 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
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,…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
Suggested Courses

715 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