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

Posted on 2007-10-03
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"


Question by:ripnoel
    1 Comment
    LVL 34

    Accepted Solution

    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

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
    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 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.
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now