Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How do I specify a specific "embeded" font face in a dynamic ActionScript field?

Posted on 2007-10-03
1
Medium Priority
?
312 Views
Last Modified: 2010-04-03
This seems to work but I'm having trouble setting the text to a specific font which I will embed with the flash movie:
------------------------
      time_txt.htmlText = "<font size='10' color='#999999'> Current Time:"+minutes+":"+seconds+totalTimeText+"</font>";
------------------------
What code can I use to specify a specific font to use for this text? The name of the font I wan to use is "Kabel Md BT"

Thanks,

Rip
0
Comment
Question by:ripnoel
1 Comment
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 2000 total points
ID: 20008835
Here is the fixed code:
time_txt.htmlText = "<font size='10' face='Kabel Md BT' color='#999999'> Current Time:"+minutes+":"+seconds+totalTimeText+"</font>";

make sure you have also embedded the font glyphs in textfield.

-------------------
Aneesh Chopra
-------------------
0

Featured Post

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.

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,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.
Suggested Courses

578 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