Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7719467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:25:23+00:00 2026-06-01T03:25:23+00:00

I am creating dynamic TextFields in actionscript 3.0. Like many others, my text disappears

  • 0

I am creating dynamic TextFields in actionscript 3.0. Like many others, my text disappears when I set .embedFonts = true;

ArialSlim is embedded and exported for actionscript. I have successfully tested with trace(Font.enumerateFonts());

Interestingly enough, when I comment out the embed line (as shown below), the font works properly.

Alternatively, .setTextFormat(); also works properly without the .embedFonts line.

So my questions is, why? Will I run into any issues in this case?

var divArray = new Array();
var x_Lbl_Array:Array = new Array();

var entries:int = 10;

var labelFormat:TextFormat = new TextFormat();
var arial:Font = new ArialSlim();    

labelFormat.font = arial.fontName;
labelFormat.size = 10;

var xVar:int = 0;

for(var loop:int = 0; loop < entries; loop++){
    x_Lbl_Array[loop] = new TextField();

    //x_Lbl_Array[loop].embedFonts = true;
    x_Lbl_Array[loop].antiAliasType = AntiAliasType.NORMAL;
    x_Lbl_Array[loop].defaultTextFormat = labelFormat;

    x_Lbl_Array[loop].x = xVar;
    x_Lbl_Array[loop].y = 165;
    x_Lbl_Array[loop].text = "test";

    mc.addChild(x_Lbl_Array[loop]);
    xVar++;
}

Edit:
I just ran this code from frame 1 with .embedFonts = true; and it worked…

Maybe I should mention that I’m having trouble running this code in a method inside an instantiated actionscript class. The class is located in an external .as file. Does this help answer my question?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T03:25:25+00:00Added an answer on June 1, 2026 at 3:25 am

    It turns out that I at some point clicked “TLF (DF4)” in the outline format options for my embedded font. When I corrected this, and chose “Classic (DF3),” it fixed my problem.

    I guess what I find to be really weird is that the font was showing properly without .embedFonts being set to true

    Thank you, Daniel. I appreciate the help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating dynamic templated XAML designs that I would like to convert to PNG
I am creating dynamic text boxes on button click and then showing values on
I need to integrate the functionality of creating dynamic pages (like google sites) to
We are creating dynamic text boxes and buttons inside a grid for each row.
We have many environments and thinking of creating dynamic application configuration as part of
I would like to know what is the best way of creating dynamic queries
I am creating dynamic menus and submenus in php.... Can't know where to start....
which method do you prefer for creating dynamic sql queries? formating or streaming? Is
Was wondering if anyone had any smart approaches to creating dynamic vanity user urls
I have a scenario that, I am creating dynamic html content and I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.