Solved

listing fonts

Posted on 2006-10-31
9
218 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Facebook font changes 6 105
Install adobe flash plugin for Firefox win 7 9 73
Create animated movies for web page 18 172
Numbers in fonts funny displayed... 11 51
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 last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Suggested Courses

752 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