Solved

Dynamically load fonts and alter text

Posted on 2006-06-26
5
253 Views
Last Modified: 2013-12-03
I'd like to have a Flash file on my website that can dynamically load a font file, as well as allow the user to type in whatever they wish using the font they choose. I would of course also need to be able to export those variables in some way shape or form. Whether it's an XML file or a POST to my PHP script (I'd love it if I could do this with no security warnings in Flash).

For an example of what I am talking about, take a look at http://stickerjunkie.com. You can type in whatever you like, and you can change the font by clicking the little arrows on the right, which gives you a nice selection of fonts.

Are there any tutorials available or anything someone can point me to in order to figure this one out? I am using Flash MX/6 but I will upgrade to a higher version if needed.

Thanks!
0
Comment
Question by:MaybeItsJeremy
[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
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
muxxter earned 500 total points
ID: 16988522
Here's what I use to assign a font to a textbox/list/combobox/whatever:

<objectInst>.setStyle("fontFamily", "<font name>");

However, <font name> has to be the name of a font in the library, or a system font.

Cheers
MuXx
0
 

Author Comment

by:MaybeItsJeremy
ID: 16988574
Thanks for the reply. So are you saying Flash won't have a problem dynamically loading a font that is stored on my server?
0
 
LVL 7

Expert Comment

by:muxxter
ID: 16989745
As long as it's a system font. (ie. It's listed in "C:\WINDOWS\Fonts") If this is the case then Flash will have no problem with it at all. I do it in my programs quite often.

MuXx
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Test server 2003R2 for font corruption 4 112
How to add jQuery and JavaScript(s) into Dreamweaver? 1 354
You Tube Videos not playing 9 137
Play RTMP without Flash 3 772
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 how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

730 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