Skip to main content
Known Participant
November 23, 2011
Question

I have an illegible sentence instead of a legible one when I test the movie

  • November 23, 2011
  • 1 reply
  • 749 views

How do I do this? :

Output: Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts.

My code where it says "I am thinking of a number between 1 and 100" shows patchyly.  So you can't read it as only a few letters are there:

package

{

          import flash.display.MovieClip;

          import flash.events.MouseEvent;

 

          public class Main extends MovieClip

          {

                    var startMessage:String;

                    var mysteryNumber:uint;

 

 

                    public function Main()

                    {

                              init();

                    }

                    function init():void

                    {

                              //Initialize variables

                              startMessage ="I am thinking of a number between 1 and 100";

                              mysteryNumber = 50;

 

                              //Initialize text fields

                              output_txt.text = startMessage;

                              input_txt.text = "";

                              input_txt.backgroundColor = 0xCCCCCC;

                              input_txt.restrict = "0-9";

                              stage.focus = input_txt;

                    }

          }

}

This topic has been closed for replies.

1 reply

November 23, 2011

Its asking you to embed the font.  This can be done via as3, but in your case it is probably easier to use the properties panel.  So on your stage, select your input_txt field.  With this field selected, go to the properties panel.  This is the place you can set it to classic text, static text, text size etc.  Within the properties panel, you will see a Character sub menu, with the options Family (the type of font you use), and Style.  Next to style is an embed button.  Select this and when you get the pop up, make any extra selections you want and click on ok.  It should work after you have done this.

Known Participant
November 23, 2011

the output is gone but a legible sentence is still not generated.